-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The sozo build, sozo cleanand sozo test commands are not passing --offline to scarb
To Reproduce
Disable network.
While offline, scarb --offline build works:
$ scarb --offline build
Compiling pistols v1.2.10 (/Users/roger/Dev/Realms/pistols/dojo/Scarb.toml)
Finished `dev` profile target(s) in 17 seconds
But sozo --offline build doesn't:
$ sozo --offline build
error: failed to lookup for `dojo_cairo_test ^1.7.1` in registry: registry+https://scarbs.xyz/
Caused by:
0: failed to lookup for `dojo_cairo_test ^1.7.1` in registry: registry+https://scarbs.xyz/
1: error sending request for url (https://scarbs.xyz/api/v1/index/do/jo/dojo_cairo_test.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
2: error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
3: dns error: failed to lookup address information: nodename nor servname provided, or not known
4: failed to lookup address information: nodename nor servname provided, or not known
Scarb command failed with exit code: exit status: 1
This is the same output as scarb without --offline:
$ scarb build
error: failed to lookup for `dojo_cairo_test ^1.7.1` in registry: registry+https://scarbs.xyz/
Caused by:
0: failed to lookup for `dojo_cairo_test ^1.7.1` in registry: registry+https://scarbs.xyz/
1: error sending request for url (https://scarbs.xyz/api/v1/index/do/jo/dojo_cairo_test.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
2: error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
3: dns error: failed to lookup address information: nodename nor servname provided, or not known
4: failed to lookup address information: nodename nor servname provided, or not known
Expected behavior
All scarb options should be routed from sozo to scarb.
Additional context
$ sozo --version
sozo 1.7.1
scarb: scarb 2.12.2 (dc0dbfd50 2025-09-15)
cairo: 2.12.2 (https://crates.io/crates/cairo-lang-compiler/2.12.2)
sierra: 1.7.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working