Repository navigation
Closed
Description
Subissue of EPIC #1669 (Overhaul: Packages). Pre-publish sub-issue P1 of the first-publish tracking issue. Not blocked.
Bug
cargo package --workspace --no-verify fails on develop (5b54bb0f4, stable Rust toolchain, cargo 1.99.0):
Packaging torrust-tracker-axum-health-check-api-server v0.1.0 (.../packages/axum-health-check-api-server)
Updating crates.io index
error: failed to prepare local package for uploading
Caused by:
no matching package named `torrust-tracker-axum-health-check-api-server` found
location searched: crates.io index
required by package `torrust-tracker-axum-health-check-api-server v0.1.0 (.../packages/axum-health-check-api-server)`
What happens:
packages/axum-health-check-api-server/Cargo.tomllists the crate itself under[dev-dependencies](torrust-tracker-axum-health-check-api-server = { version = "0.1.0", path = "../axum-health-check-api-server" }). The line dates from before the Aligntorrust-prefix: rename 7 tracker-specific packages totorrust-tracker-#1816 rename and is not needed: Cargo already lets the crate's integration tests import the package under test.cargo packagekeeps a dev-dependency that has aversionand resolves it against the registry plus the crates already packaged in the same run, and a crate is never packaged before itself.- So the requirement cannot be met.
cargo publishfails the same way.
Impact: nothing is wrong at runtime or in tests, but the crate cannot be published, which the independent versioning ADR expects of every crate without publish = false, and cargo package --workspace stops at it.
A probe on 2026-10-20 removed the line: the crate's tests still pass (3 unit, 8 integration) and all 32 workspace members package.
Plan (fix-bug workflow)
- Reproduce: done.
- Add a CI step running
cargo package --workspace --no-verify(maintainer decision, 2026-10-20); record its red run on the unfixed tree. - Remove the self dev-dependency.
- Green: the CI step and
cargo test -p torrust-tracker-axum-health-check-api-serverpass; repeat the reproduction like-for-like.
Acceptance criteria
- The crate's manifest has no dependency on its own crate.
-
cargo package --workspace --no-verifyexits0(it exited101before the fix). -
cargo test -p torrust-tracker-axum-health-check-api-serverpasses. - CI runs
cargo package --workspace --no-verify; the step failed on the unfixed tree and passes on the fixed tree. - Reproduction and recheck recorded in the issue-local
manual-verification-evidence.md.
Specification: docs/issues/open/2582-1669-remove-health-check-self-dev-dependency/ISSUE.md (added by the spec-only PR of the first-publish tracking issue).
Activity
docs(issues): [#2583] add issue specifications for the first publish …
docs(issues): [#2583] track the first publish and its pre-publish sub…
Merge #2585: docs(issues): [#2583] add issue specification for the fi…
chore(git-hooks): [torrust#2582] check workspace packaging before pus…
docs(issues): [torrust#2582] record the red runs of the packaging checks
fix(axum-health-check-api-server): [torrust#2582] remove the self dev…
docs(issues): [torrust#2582] record the maintainer's decisions for th…
ci(testing): [torrust#2582] package every workspace crate on each run
chore(git-hooks): [torrust#2582] check workspace packaging before pus…
docs(issues): [torrust#2582] record the red runs of the packaging checks
fix(axum-health-check-api-server): [torrust#2582] remove the self dev…
docs(issues): [torrust#2582] record the green runs and the like-for-l…
docs(issues): [torrust#2582] record the checks rerun after rebasing o…
docs(issues): [torrust#2582] record PR torrust#2601 in the spec and t…
docs(testing): [torrust#2582] realign the pre-push row of the check o…
docs(pr-reviews): [torrust#2582] add the PR torrust#2601 review audit
docs(pr-reviews): [torrust#2582] record the second Copilot review of PR
chore(issues): archive closed issue #2582 spec to docs/issues/closed
Merge #2609: chore(issues): archive closed issue #2582 spec to docs/i…
Merge #2614: docs(issues): [#2482] refresh the test-support sub-EPIC …
Merge torrust#2601: fix(axum-health-check-api-server): [torrust#2582]…