Skip to content

Commit 3425e09

Browse files
committed
fix: workaround to publish example_test
GitoxideLabs/cargo-smart-release#36
1 parent 0683595 commit 3425e09

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

RELEASING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ When adding a new crate which is published, you need to:
123123
to the [command in the `release.yml` workflow](https://github.com/hydro-project/hydro/blob/main/.github/workflows/release.yml#L82).
124124
(also update the `cargo smart-release` test command above in this file).
125125

126+
If the crate is only used via `[dev-dependencies]` then the crate may not publish automatically due
127+
to https://github.com/Byron/cargo-smart-release/issues/36. To workaround this bug, additionally add
128+
the crate as a regular `[dependencies]` but marked as `optional = true`.
129+
126130
Then just run the release workflow as normal.
127131

128132
## Addendum: Moving crates

dfir_rs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ web-time = "1.0.0"
5959
# added to workaround `cargo smart-release` https://github.com/Byron/cargo-smart-release/issues/36
6060
multiplatform_test = { path = "../multiplatform_test", version = "^0.5.0", optional = true }
6161
include_mdtests = { path = "../include_mdtests", version = "^0.0.0", optional = true }
62+
example_test = { path = "../example_test", version = "^0.0.0", optional = true }
6263

6364
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
6465
tokio = { version = "1.29.0", features = [ "io-std" ] }

hydro_test/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ colored = "3.0.0"
1818
palette = "0.7.6"
1919
tokio = "1.29.0"
2020

21+
# added to workaround `cargo smart-release` https://github.com/Byron/cargo-smart-release/issues/36
22+
example_test = { path = "../example_test", version = "^0.0.0", optional = true }
23+
2124
[build-dependencies]
2225
stageleft_tool.workspace = true
2326

0 commit comments

Comments
 (0)