Skip to content

Commit dadb2ea

Browse files
committed
build: correctly replace SCM_HEAD_SHA with BUILD_SCM_COMMIT_SHA
Correctly replace `SCM_HEAD_SHA` with `BUILD_SCM_COMMIT_SHA` by enclosing it in `{}` for proper interpolation. Example of the issue: https://github.com/angular/dev-infra-private-ng-dev-builds/blob/1f3cada3da1d7a486e9470f0fb4f2cb31485b018/package.json#L3
1 parent f70475f commit dadb2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
stampSubstitutions = {
22
# The variables are special statuses generated within the Bazel workspace
33
# status command stamping script.
4-
"{SCM_HEAD_SHA}": "{BUILD_SCM_COMMIT_SHA}",
4+
"{SCM_HEAD_SHA}": "{{BUILD_SCM_COMMIT_SHA}}",
55
}
66

77
noStampSubstitutions = dict(stampSubstitutions, **{})

0 commit comments

Comments
 (0)