Skip to content

Commit 5b077cb

Browse files
committed
chore(build-dir): Renamed workspace-manifest-path-hash to workspace-path-hash
1 parent 662213b commit 5b077cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cargo/util/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl GlobalContext {
675675
.context("cargo home was not valid utf-8")?
676676
.to_string(),
677677
),
678-
("{workspace-manifest-path-hash}", {
678+
("{workspace-path-hash}", {
679679
let hash = crate::util::hex::short_hash(&workspace_manifest_path);
680680
format!("{}{}{}", &hash[0..2], std::path::MAIN_SEPARATOR, &hash[2..])
681681
}),

src/doc/src/reference/unstable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ This option supports path templating.
265265
Avaiable template variables:
266266
* `{workspace-root}` resolves to root of the current workspace.
267267
* `{cargo-cache-home}` resolves to `CARGO_HOME`
268-
* `{workspace-manifest-path-hash}` resolves to a hash of the manifest path
268+
* `{workspace-path-hash}` resolves to a hash of the manifest path
269269

270270

271271
## root-dir

tests/testsuite/build_dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ fn template_workspace_manfiest_path_hash() {
586586
".cargo/config.toml",
587587
r#"
588588
[build]
589-
build-dir = "foo/{workspace-manifest-path-hash}/build-dir"
589+
build-dir = "foo/{workspace-path-hash}/build-dir"
590590
target-dir = "target-dir"
591591
"#,
592592
)

0 commit comments

Comments
 (0)