summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-02-24 08:27:08 +0200
committerLars Wirzenius <liw@liw.fi>2024-02-25 14:48:07 +0200
commitd857fd0b47de6fcdf715215b103adfd0c7c7aab6 (patch)
treede1b3136a164452cb953c37a134617662af54eb8
parent11389da09cb29655f90e2447405a81b60ad75e61 (diff)
downloadsubplot-d857fd0b47de6fcdf715215b103adfd0c7c7aab6.tar.gz
fix(check): run cargo build with --offline
This is needed for running the test suite under Ambient, without network access. Other invocations of cargo are already doing this, but I had missed this invocation previously. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rwxr-xr-xcheck5
1 files changed, 4 insertions, 1 deletions
diff --git a/check b/check
index 06a4e2d..2f913b8 100755
--- a/check
+++ b/check
@@ -253,7 +253,10 @@ def check_rust(r, strict=False, sloppy=False):
"""Run all checks for Rust code"""
r.title("checking Rust code")
- r.runcmd(["cargo", "build", "--workspace", "--all-targets"])
+ argv = ["cargo", "build", "--workspace", "--all-targets"]
+ if r.offline:
+ argv.append("--offline")
+ r.runcmd(argv)
if r.got_cargo("clippy") and not sloppy:
argv = [