Skip to content

Patch htslib-rs/noodles git deps to rv-managed local paths#76

Merged
madhavajay merged 1 commit into
madhava/libsfrom
cargo/patch-shared-deps
May 27, 2026
Merged

Patch htslib-rs/noodles git deps to rv-managed local paths#76
madhavajay merged 1 commit into
madhava/libsfrom
cargo/patch-shared-deps

Conversation

@madhavajay
Copy link
Copy Markdown
Contributor

Summary

  • Add [patch."https://github.com/madhavajay/htslib-rs.git"] and [patch."https://github.com/madhavajay/noodles.git"] to rust/Cargo.toml, redirecting to the rv-managed checkouts under vendor/rust/.
  • Add .cargo/config.toml setting net.git-fetch-with-cli = true so cargo's upstream verification fetch uses the user's git (respects SSH/credentials).

Why

bcftools-rs and samtools-rs (and htslib-rs itself) now consume htslib-rs / noodles as git deps (see madhavajay/bcftools-rs#274, samtools-rs#59, htslib-rs#14). Cargo identifies them by URL, so this workspace's [patch] collapses three would-be path sources into one rv-managed local crate per dep — eliminating cargo's package collision in the lockfile error.

Test plan

  • cargo check --workspace resolves without package collision in the lockfile
  • CI green

bcftools-rs and samtools-rs (and htslib-rs itself) now declare
htslib-rs and noodles as git deps. Cargo identifies them by URL, so
this workspace can [patch] both URLs to the single rv-managed local
checkout under vendor/rust/, collapsing what cargo would otherwise
see as three independent path sources into one lockfile entry.

Also set net.git-fetch-with-cli so cargo uses the system git for the
upstream verification fetch (respects ssh config and credentials).
@madhavajay
Copy link
Copy Markdown
Contributor Author

Keeping these as local edits on madhava/libs for now — will land via the branch's existing flow once verified end-to-end.

@madhavajay madhavajay closed this May 27, 2026
@madhavajay madhavajay deleted the cargo/patch-shared-deps branch May 27, 2026 12:20
@madhavajay madhavajay restored the cargo/patch-shared-deps branch May 27, 2026 12:21
@madhavajay madhavajay reopened this May 27, 2026
@madhavajay madhavajay merged commit 4c6184c into madhava/libs May 27, 2026
1 of 5 checks passed
@madhavajay madhavajay deleted the cargo/patch-shared-deps branch May 27, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant