Skip to content

Commit 224b124

Browse files
kariyclaude
andcommitted
ci: use ASDF_SOZO_VERSION env var for sozo version
The `asdf set -u` approach writes to `~/.tool-versions`, but asdf stops searching when it finds a `.tool-versions` in a parent directory (e.g. in the cloned dojo repo) that doesn't include sozo. The ASDF_<TOOL>_VERSION env var takes highest precedence in asdf's version resolution, overriding any `.tool-versions` file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 62600ea commit 224b124

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/generate-db-dispatch.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
container:
1111
image: ghcr.io/dojoengine/katana-dev:latest
12+
env:
13+
ASDF_SOZO_VERSION: "1.7.0"
1214
steps:
1315
- uses: actions/checkout@v4
1416
with:
@@ -29,9 +31,6 @@ jobs:
2931
with:
3032
scarb-version: "2.10.1"
3133

32-
- name: Set sozo version
33-
run: asdf set -u sozo 1.7.0
34-
3534
- name: Generate test database
3635
run: ./scripts/generate-test-db.sh --dojo-tag v1.6.0
3736

@@ -45,6 +44,8 @@ jobs:
4544
runs-on: ubuntu-latest
4645
container:
4746
image: ghcr.io/dojoengine/katana-dev:latest
47+
env:
48+
ASDF_SOZO_VERSION: "1.7.0"
4849
steps:
4950
- uses: actions/checkout@v4
5051
with:
@@ -54,9 +55,6 @@ jobs:
5455
- run: git config --global --add safe.directory "*"
5556
- uses: Swatinem/rust-cache@v2
5657

57-
- name: Set sozo version
58-
run: asdf set -u sozo 1.7.0
59-
6058
- name: Build contracts
6159
run: make contracts
6260

0 commit comments

Comments
 (0)