Skip to content

fix(ak): specify version for stakpak-api dependency#752

Merged
ahmedhesham6 merged 1 commit into
mainfrom
fix/ak-publish-version
Jun 10, 2026
Merged

fix(ak): specify version for stakpak-api dependency#752
ahmedhesham6 merged 1 commit into
mainfrom
fix/ak-publish-version

Conversation

@ahmedhesham6

Copy link
Copy Markdown
Collaborator

Problem

Publishing stakpak-ak to crates.io fails with:

error: failed to verify manifest at `libs/ak/Cargo.toml`
Caused by:
  all dependencies must have a version requirement specified when publishing.
  dependency `stakpak-api` does not specify a version

libs/ak/Cargo.toml referenced stakpak-api via a bare path dependency ({ path = "../api" }) with no version. On cargo publish, the path is stripped and replaced with a crates.io version, so a version requirement must be declared.

Fix

Switch to the workspace dependency ({ workspace = true }), matching every other crate in the repo. It inherits stakpak-api = { path = "libs/api", version = "0.3.87" } from the root [workspace.dependencies].

Verification

cargo build -p stakpak-ak succeeds.

The bare path dependency on stakpak-api had no version requirement,
which causes cargo publish to fail (crates.io requires a version for
all dependencies). Switch to the workspace dependency like every other
crate, which inherits version = "0.3.87".
@ahmedhesham6 ahmedhesham6 merged commit 863a27a into main Jun 10, 2026
1 check passed
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