Skip to content

Commit 2ea129a

Browse files
sanityclaude
andauthored
fix(ci): switch freenet dev-dep from git to crates.io and simplify prefetch (freenet#162)
The room-contract dev-dependency on `freenet` used a git reference to freenet-core main branch, making CI builds non-reproducible. When the lockfile prefetch failed (Cargo.lock is gitignored so --locked always fails) and fell back to a non-locked fetch, it could resolve to a different freenet-core commit with incompatible transitive dependencies (e.g., freenet-stdlib version mismatch), breaking the build. Changes: - Switch `freenet` dev-dep from git (main branch) to crates.io (0.1.179) - Simplify CI prefetch to `cargo fetch` (--locked is impossible without a committed Cargo.lock) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5de07d9 commit 2ea129a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ jobs:
6565
working-directory: ./ui
6666

6767
- name: Prefetch dependencies
68-
run: |
69-
cargo fetch --locked || {
70-
echo "Locked prefetch failed; falling back to non-locked fetch (lockfile likely outdated).";
71-
cargo fetch;
72-
}
68+
run: cargo fetch
7369

7470
- name: Build Project
7571
run: cargo make build

contracts/room-contract/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ wasm-crypto = ["ed25519-compact"]
3030

3131
[dev-dependencies]
3232
anyhow = "1.0"
33-
freenet = { git = "https://github.com/freenet/freenet-core.git", branch = "main" }
33+
freenet = "0.1.179"
3434
once_cell.workspace = true
3535
tempfile = "3.0"
3636
testresult = "0.4"

0 commit comments

Comments
 (0)