Skip to content

Commit

Permalink
rename workspace-hack to guppy-workspace-hack
Browse files Browse the repository at this point in the history
Unfortunately, cargo has a few bugs: facebookarchive/cargo-guppy#524
  • Loading branch information
sunshowers committed Dec 8, 2021
1 parent 5b7c77b commit bdd9d77
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .config/hakari.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file contains settings for `cargo hakari`.
# See https://docs.rs/cargo-hakari/latest/cargo_hakari/config for a full list of options.

hakari-package = "workspace-hack"
hakari-package = "guppy-workspace-hack"

# Setting workspace.resolver = "2" in the root Cargo.toml is HIGHLY recommended.
# Hakari works much better with the new feature resolver.
Expand Down
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cargo-guppy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ serde = { version = "1.0.130", features = ["derive"] }
serde_json = "1.0.72"
structopt = "0.3.25"
toml_edit = "0.10.1"
workspace-hack = { version = "0.1", path = "../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../workspace-hack" }
2 changes: 1 addition & 1 deletion fixtures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ guppy = { path = "../guppy" }
once_cell = "1.8.0"
pathdiff = "0.2.0"
pretty_assertions = "1.0.0"
workspace-hack = { version = "0.1", path = "../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../workspace-hack" }
2 changes: 1 addition & 1 deletion guppy-cmdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ anyhow = "1.0.44"
guppy = { path = "../guppy" }
structopt = "0.3.25"
proptest = { version = "1.0.0", optional = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../workspace-hack" }

[features]
proptest1 = ["proptest", "guppy/proptest1"]
2 changes: 1 addition & 1 deletion guppy-summaries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ diffus = "0.10.0"
toml = { version = "0.5.8", features = ["preserve_order"] }
semver = { version = "1.0.4", features = ["serde"] }
serde = { version = "1.0.130", features = ["derive"] }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
pretty_assertions = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion guppy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ serde_json = "1.0.72"
smallvec = "1.7.0"
target-spec = { version = "0.9.0", path = "../target-spec" }
toml = { version = "0.5.8", optional = true, features = ["preserve_order"] }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
fixtures = { path = "../fixtures" }
Expand Down
2 changes: 1 addition & 1 deletion internal-tools/benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false # this is a private crate
guppy = { path = "../../guppy", features = ["proptest1"] }
proptest = "1.0.0"
proptest-ext = { path = "../proptest-ext" }
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../../workspace-hack" }

[dev-dependencies]
criterion = "0.3.5"
Expand Down
2 changes: 1 addition & 1 deletion internal-tools/fixture-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ once_cell = "1.8.0"
proptest = "1.0.0"
proptest-ext = { path = "../proptest-ext" }
structopt = "0.3.25"
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../../workspace-hack" }
2 changes: 1 addition & 1 deletion internal-tools/proptest-ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ publish = false # this is a private crate
[dependencies]
proptest = "1.0.0"
twox-hash = { version = "1.6.1", default-features = false }
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../../workspace-hack" }
2 changes: 1 addition & 1 deletion target-spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cfg-expr = { version = "0.9.0", features = ["targets"] }
proptest = { version = "1.0.0", optional = true }
serde = { version = "1.0.130", optional = true, features = ["derive"] }
target-lexicon = { version = "0.12.2", features = ["std"] }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
toml = "0.5.8"
Expand Down
2 changes: 1 addition & 1 deletion tools/cargo-hakari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ log = "0.4.14"
owo-colors = { version = "3.1.0", features = ["supports-colors"] }
supports-color = "1.3.0"
structopt = "0.3.25"
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../../workspace-hack" }

[dev-dependencies]
tempfile = "3.2.0"
2 changes: 1 addition & 1 deletion tools/determinator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ petgraph = { version = "0.6.0", default-features = false, features = ["graphmap"
rayon = "1.5.1"
serde = { version = "1.0.130", features = ["derive"] }
toml = "0.5.8"
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../../workspace-hack" }

[dev-dependencies]
fixtures = { path = "../../fixtures" }
Expand Down
2 changes: 1 addition & 1 deletion tools/hakari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ target-spec = { version = "0.9.0", path = "../../target-spec" }
toml = { version = "0.5.8", optional = true }
toml_edit = "0.10.1"
twox-hash = { version = "1.6.1", default-features = false }
workspace-hack = { version = "0.1", path = "../../workspace-hack" }
guppy-workspace-hack = { version = "0.1", path = "../../workspace-hack" }

[dev-dependencies]
fixtures = { path = "../../fixtures" }
Expand Down
3 changes: 2 additions & 1 deletion tools/hakari/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ let package_graph = MetadataCommand::new()
.expect("obtained cargo-guppy's PackageGraph");

// The second argument to HakariBuilder::new specifies a Hakari (workspace-hack) package.
let hakari_package = package_graph.workspace().member_by_name("workspace-hack").unwrap().id();
// In this repository, the package is called "guppy-workspace-hack".
let hakari_package = package_graph.workspace().member_by_name("guppy-workspace-hack").unwrap().id();
let hakari_builder = HakariBuilder::new(&package_graph, Some(hakari_package))
.expect("HakariBuilder was constructed");

Expand Down
3 changes: 2 additions & 1 deletion tools/hakari/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
//! .expect("obtained cargo-guppy's PackageGraph");
//!
//! // The second argument to HakariBuilder::new specifies a Hakari (workspace-hack) package.
//! let hakari_package = package_graph.workspace().member_by_name("workspace-hack").unwrap().id();
//! // In this repository, the package is called "guppy-workspace-hack".
//! let hakari_package = package_graph.workspace().member_by_name("guppy-workspace-hack").unwrap().id();
//! let hakari_builder = HakariBuilder::new(&package_graph, Some(hakari_package))
//! .expect("HakariBuilder was constructed");
//!
Expand Down
2 changes: 1 addition & 1 deletion workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# cargo hakari generate

[package]
name = "workspace-hack"
name = "guppy-workspace-hack"
version = "0.1.0"
description = "workspace-hack package, managed by hakari"
publish = true
Expand Down

0 comments on commit bdd9d77

Please sign in to comment.