Skip to content

fix: add version to shadow-core workspace dependencies for cargo publish - #206

Merged
sylvestre merged 1 commit into
mainfrom
fix/cargo-publish-shadow-core-version
Aug 5, 2026
Merged

fix: add version to shadow-core workspace dependencies for cargo publish#206
sylvestre merged 1 commit into
mainfrom
fix/cargo-publish-shadow-core-version

Conversation

@sylvestre

@sylvestre sylvestre commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Without a version field, `cargo publish` fails for all crates that
depend on shadow-core:

  all dependencies must have a version requirement specified when publishing.
  dependency `shadow-core` does not specify a version

Add version = "0.2.0" to all three shadow-core dependency declarations
in Cargo.toml (workspace.dependencies, [dependencies], and dev-dependencies)
to allow `cargo publish` to work correctly.
Copilot AI lite review requested due to automatic review settings August 5, 2026 18:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes cargo publish --dry-run failures by ensuring the internal shadow-core dependency has an explicit version requirement when referenced via a local path, satisfying Cargo’s publishing validation rules.

Changes:

  • Add version = "0.2.0" to shadow-core in [workspace.dependencies].
  • Add version = "0.2.0" to shadow-core in the root crate’s [dependencies].
  • Add version = "0.2.0" to shadow-core in the root crate’s [dev-dependencies] (with features = ["shadow"]).
Suppressed comments (1)

Cargo.toml:209

  • To avoid duplicating the shadow-core path/version in multiple sections, prefer inheriting from [workspace.dependencies] and only overriding the needed features here. This matches how the uu_* crates reference shadow-core via workspace = true.
shadow-core = { path = "src/shadow-core", version = "0.2.0", features = ["shadow"] }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Cargo.toml
clap = { workspace = true }
clap_complete = { workspace = true, optional = true }
shadow-core = { path = "src/shadow-core" }
shadow-core = { path = "src/shadow-core", version = "0.2.0" }
@sylvestre
sylvestre merged commit 2f14db1 into main Aug 5, 2026
9 checks 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.

2 participants