Skip to content

Commit 8b33da9

Browse files
committed
fix(build): patch core2 to upstream git to unblock fresh resolution
core2 0.4.0 is yanked on crates.io and no 0.4.1+ release exists. The libflate / libflate_lz77 chain (pulled in transitively via nodedb-fts' optional jieba feature → include-flate → include-flate-compress) still requires core2 ^0.4, so any fresh dependency resolution — such as CI running without a committed lockfile — fails with "version 0.4.0 is yanked". Because NodeDB is a library workspace (nodedb-fts and others are published to crates.io), committing Cargo.lock is not appropriate. Patching directly to the upstream technocreatives/core2 git repo at the commit that corresponds to 0.4.0 lets cargo bypass the registry yank check while building bit-identical code. Verified: `cargo check --workspace --all-features` and `cargo clippy --workspace --all-targets --all-features -- -D warnings` both succeed with a fresh lockfile. Remove this patch once libflate releases a version that drops the core2 dependency.
1 parent a0a94cc commit 8b33da9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,12 @@ incremental = false
234234
[profile.debugging]
235235
inherits = "dev"
236236
debug = true
237+
238+
# core2 0.4.0 is yanked on crates.io but no 0.4.1+ exists, and libflate /
239+
# libflate_lz77 (pulled in via the `jieba` feature of nodedb-fts →
240+
# include-flate → include-flate-compress) still require `core2 ^0.4`.
241+
# Point cargo at the upstream git source so fresh resolution (CI without
242+
# a committed lockfile) succeeds — git sources bypass the registry's yank
243+
# check. Safe to remove once libflate releases a bump off core2.
244+
[patch.crates-io]
245+
core2 = { git = "https://github.com/technocreatives/core2", rev = "545e84bcb0f235b12e21351e0c69767958efe2a7" }

0 commit comments

Comments
 (0)