Skip to content

ci: migrate internal deps from Forgejo to GitHub (pinned v0.1.0) - #5

Merged
thedancingdeveloper merged 2 commits into
mainfrom
ci/migrate-deps-to-github
Aug 24, 2026
Merged

ci: migrate internal deps from Forgejo to GitHub (pinned v0.1.0)#5
thedancingdeveloper merged 2 commits into
mainfrom
ci/migrate-deps-to-github

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Collaborator

Fixes the root cause behind #4 and unblocks #3.

Problem

librtbit's 11 internal deps were pinned to the decommissioned Forgejo instance (http://100.92.54.45:3002/indexarr). CI can't reach it → Build & Test fails at dependency resolution. Naively repointing to GitHub tag=v0.1.0 produced a diamond dependency: the siblings' own v0.1.0 tags referenced the pre-transfer AusAgentSmith-org, so Cargo built two copies of librtbit-core (etc.) → Id20 type conflicts.

What changed

  1. Re-cut the siblings' v0.1.0 tags (bencode, buffers, core, dht, lsd, peer-protocol, tracker-comms, upnp-serve) so their internal deps reference TheDancingDeveloper-org instead of AusAgentSmith-org — same pinned trees, only the source-URL org changes. This collapses the diamond to a single copy of each crate.
  2. This PR: repoint librtbit's 11 deps to https://github.com/TheDancingDeveloper-org/..., keeping tag=v0.1.0. No source changes — v0.1.0 is a coherent snapshot (reqwest 0.12, 8-arg TrackerComms::start), so the current call sites are correct.

Verification

  • cargo check --workspace ✅ — resolves a single librtbit-core, 0 Forgejo/AusAgentSmith refs.
  • cargo fmt --all -- --check
  • Cargo.lock churn limited to the internal-crate source URLs.

Note

Pre-existing clippy lints in librtbit's own source (e.g. chunk_tracker.rs, manual_checked_ops, formatting) fire under clippy 1.98 independent of this change (source is untouched here). If Build & Test fails on those, they're separate tech-debt, not a regression from this migration.

🤖 Generated with Claude Code

thedancingdeveloper and others added 2 commits August 23, 2026 23:59
librtbit's 11 internal crates were fetched from the decommissioned
self-hosted Forgejo instance (http://100.92.54.45:3002/indexarr), which CI
cannot reach ("could not read Username"), so Build & Test failed at
dependency resolution.

Point them at their GitHub sources pinned at tag v0.1.0. This required first
re-cutting the siblings' v0.1.0 tags so their own internal deps reference the
current org (TheDancingDeveloper-org) rather than the pre-transfer
AusAgentSmith-org: the two URLs resolve to the same repo via redirect but are
distinct Cargo source ids, which was compiling librtbit-core (and others)
twice and producing Id20 type conflicts. With the tags corrected, the graph
resolves a single copy of each crate and no source change is needed (v0.1.0
is a coherent reqwest-0.12 / 8-arg TrackerComms::start snapshot).

Verified: cargo check --workspace and cargo fmt --check pass locally; lock
churn limited to the internal-crate source URLs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
clippy 1.98 (-D warnings) flags redundant `&` in 7 bail!/format! arguments
across http_api_client, filesystem storage and peer_handler. These block the
required Build & Test check. main cannot be fixed independently because it
does not build (Forgejo deps), so the fix rides with the GitHub migration.
Mechanical: `&x` and `x` format identically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@thedancingdeveloper
thedancingdeveloper merged commit eb6cb4f into main Aug 24, 2026
1 check passed
@thedancingdeveloper
thedancingdeveloper deleted the ci/migrate-deps-to-github branch August 24, 2026 01:36
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