Skip to content

Commit c4efd74

Browse files
committed
build: correctly replace BUILD_SCM_HASH-PLACEHOLDER with BUILD_SCM_ABBREV_HASH
Correctly replace `BUILD_SCM_HASH-PLACEHOLDER` with `BUILD_SCM_ABBREV_HASH` by enclosing it in `{}` for proper interpolation. Example of the issue: https://github.com/angular/angular-build-builds/blob/cac2e58892c99256d3a1f0abeb274f116edd5a26/package.json#L26
1 parent 5f7ac55 commit c4efd74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/substitutions.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _stamp_substitutions = {
55
"0.0.0-PLACEHOLDER": "{{STABLE_PROJECT_VERSION}}",
66
"0.0.0-EXPERIMENTAL-PLACEHOLDER": "{{STABLE_PROJECT_EXPERIMENTAL_VERSION}}",
77
# ---
8-
"BUILD_SCM_HASH-PLACEHOLDER": "{BUILD_SCM_ABBREV_HASH}",
8+
"BUILD_SCM_HASH-PLACEHOLDER": "{{BUILD_SCM_ABBREV_HASH}}",
99
"0.0.0-ENGINES-NODE": RELEASE_ENGINES_NODE,
1010
"0.0.0-ENGINES-NPM": RELEASE_ENGINES_NPM,
1111
"0.0.0-ENGINES-YARN": RELEASE_ENGINES_YARN,

0 commit comments

Comments
 (0)