Skip to content

Commit 006e31a

Browse files
davidsmfreireclaude
andcommitted
fix(cli): declare sqlshield-introspect via workspace deps for crates.io publish
`cargo publish` rejects path-only dependencies because the version is required to resolve the crate on crates.io. The first attempt to publish `sqlshield-cli` failed with: all dependencies must have a version specified when publishing. dependency `sqlshield-introspect` does not specify a version Move `sqlshield-introspect` into `[workspace.dependencies]` with both `version` and `path`, and reference it from `sqlshield-cli` via `workspace = true`. Verified locally with `cargo publish -p sqlshield-cli --dry-run`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d20a0b3 commit 006e31a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ license = "MIT"
1717
repository = "https://github.com/davidsmfreire/sqlshield"
1818

1919
[workspace.dependencies]
20-
sqlshield = { version = "0.0.1", path = "sqlshield"}
20+
sqlshield = { version = "0.0.1", path = "sqlshield" }
21+
sqlshield-introspect = { version = "0.0.1", path = "sqlshield-introspect" }

sqlshield-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ clap = { version = "4.4.18", features = ["derive"] }
3636
serde = { version = "1", features = ["derive"] }
3737
serde_json = "1"
3838
sqlshield = { workspace = true }
39-
sqlshield-introspect = { path = "../sqlshield-introspect", optional = true }
39+
sqlshield-introspect = { workspace = true, optional = true }
4040
toml = "0.8"

0 commit comments

Comments
 (0)