From d857fd0b47de6fcdf715215b103adfd0c7c7aab6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 24 Feb 2024 08:27:08 +0200 Subject: 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 Sponsored-by: author --- check | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = [ -- cgit v1.2.1