Skip to content

Commit

Permalink
Fix publishing (#84)
Browse files Browse the repository at this point in the history
Fix publishing with cargo release

1. Fix version specifications for in-repo packages in workspace Cargo.toml
2. Don't release butane_test_helper
3. Don't specify version for butane_test_helper when referencing it. This allows butane_core to be published despite the circular dev-dependency. See rust-lang/cargo#7333
  • Loading branch information
Electron100 authored May 11, 2023
1 parent 0a2bde7 commit 7615017
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ members = [
edition = "2021"

[workspace.dependencies]
butane = { path = "butane" }
butane = { version = "0.6", path = "butane" }
butane_core = { version = "0.6", path = "butane_core" }
butane_test_helper = { version = "0.6", path = "butane_test_helper" }
butane_codegen = { version = "0.6", path = "butane_codegen" }
butane_test_helper = { path = "butane_test_helper" }
cfg-if = "^1.0"
chrono = { version = "0.4", default-features = false, features = [
"serde",
Expand Down
2 changes: 1 addition & 1 deletion butane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tls = ["butane_core/tls"]
uuid = ["butane_codegen/uuid", "butane_core/uuid"]

[dependencies]
butane_codegen = { path = "../butane_codegen" }
butane_codegen = { workspace = true }
butane_core = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions butane_test_helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ libc = "0.2"
once_cell = { workspace = true }
postgres = { features = ["with-geo-types-0_7"], workspace = true }
uuid = { features = ["v4"], workspace = true }

[package.metadata.release]
release = false

0 comments on commit 7615017

Please sign in to comment.