Skip to content

Commit

Permalink
[workspace-hack] use workspace-dotted scheme + patch
Browse files Browse the repository at this point in the history
We use this for both guppy and omicron now and it works really well.
  • Loading branch information
sunshowers committed Nov 27, 2023
1 parent f706649 commit 1ef25ae
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .config/hakari.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
hakari-package = "nextest-workspace-hack"

dep-format-version = "4"
workspace-hack-line-style = "workspace-dotted"

# Setting workspace.resolver = "2" in the root Cargo.toml is HIGHLY recommended.
# Hakari works much better with the new feature resolver.
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
]

[workspace.dependencies]
nextest-workspace-hack = "0.1.0"

# make backtrace + color-eyre faster on debug builds
[profile.dev.package.backtrace]
Expand All @@ -23,6 +24,9 @@ opt-level = 3
[profile.dev.package.similar]
opt-level = 3

[patch.crates-io]
nextest-workspace-hack = { path = "workspace-hack" }

# Uncomment for testing.
# [patch.crates-io]
# cargo_metadata = { path = "../cargo_metadata" }
Expand Down
2 changes: 1 addition & 1 deletion cargo-nextest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ supports-color = "2.1.0"
supports-unicode = "2.0.0"
serde_json = "1.0.108"
thiserror = "1.0.50"
nextest-workspace-hack = { version = "0.1", path = "../workspace-hack" }
nextest-workspace-hack.workspace = true

[features]
default = ["default-no-update", "self-update"]
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cargo-nextest = { path = "../cargo-nextest" }
color-eyre = { version = "0.6.2", default-features = false }
clap = { version = "4.4.8", features = ["derive", "env"] }
enable-ansi-support = "0.2.1"
nextest-workspace-hack = { version = "0.1", path = "../workspace-hack" }
nextest-workspace-hack.workspace = true

[dev-dependencies]
camino = "1.1.6"
Expand Down
2 changes: 1 addition & 1 deletion nextest-filtering/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ recursion = "0.5.1"
regex = "1.10.2"
regex-syntax = "0.8.2"
thiserror = "1.0.50"
nextest-workspace-hack = { version = "0.1", path = "../workspace-hack" }
proptest = { version = "1.4.0", optional = true }
test-strategy = { version = "0.3.1", optional = true }
twox-hash = { version = "1.6.3", optional = true }
nextest-workspace-hack.workspace = true

[dev-dependencies]
clap = { version = "4.4.8", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion nextest-metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ camino = { version = "1.1.6", features = ["serde1"] }
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
target-spec = { version = "3.0.1", features = ["custom", "summaries"] }
nextest-workspace-hack = { version = "0.1", path = "../workspace-hack" }
smol_str = { version = "0.2.0", features = ["serde"] }
nextest-workspace-hack.workspace = true

[dev-dependencies]
test-case = "3.3.1"
2 changes: 1 addition & 1 deletion nextest-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ nextest-filtering = { version = "0.5.1", path = "../nextest-filtering" }
nextest-metadata = { version = "0.9.2", path = "../nextest-metadata" }
quick-junit = { version = "0.3.5", path = "../quick-junit" }
uuid = { version = "1.6.1", features = ["v4"] }
nextest-workspace-hack = { version = "0.1", path = "../workspace-hack" }
console-subscriber = { version = "0.2.0", optional = true }
unicode-ident = "1.0.12"
unicode-normalization = "0.1.22"
indexmap = { version = "2.1.0", features = ["serde"] }
smallvec = "1.11.2"
nextest-workspace-hack.workspace = true

[target.'cfg(unix)'.dependencies]
libc = "0.2.150"
Expand Down
2 changes: 1 addition & 1 deletion quick-junit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ indexmap = "2.1.0"
quick-xml = "0.31.0"
thiserror = "1.0.50"
uuid = "1.6.1"
nextest-workspace-hack = { version = "0.1", path = "../workspace-hack" }
strip-ansi-escapes = "0.2.0"
nextest-workspace-hack.workspace = true

[dev-dependencies]
goldenfile = "1.6.0"
Expand Down

0 comments on commit 1ef25ae

Please sign in to comment.