diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-24 08:27:08 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-25 14:48:07 +0200 |
commit | d857fd0b47de6fcdf715215b103adfd0c7c7aab6 (patch) | |
tree | de1b3136a164452cb953c37a134617662af54eb8 /check | |
parent | 11389da09cb29655f90e2447405a81b60ad75e61 (diff) | |
download | subplot-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
Diffstat (limited to 'check')
-rwxr-xr-x | check | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 = [ |