We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the volatile FORMATTED_DATE is not being replaced during expand_template. But BUILD_TIMESTAMP does get replaced.
FORMATTED_DATE
BUILD_TIMESTAMP
Development (host) and target OS/architectures: OSX, darwin, arm64
Output of bazel --version: bazel 7.0.2
bazel --version
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: bazel_dep(name = "aspect_bazel_lib", version = "2.3.0")
WORKSPACE
MODULE.bazel
Language(s) and/or frameworks involved:
load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template") expand_template( name = "labels", out = "labels.txt", stamp = 1, stamp_substitutions = { "{{_BUILD_TIME}}": "{{FORMATTED_DATE}}", }, template = [ "BUILD_TIME={{_BUILD_TIME}}", ], ) Expected: cat labels.txt BUILD_TIME=2024 Apr 29 21 21 05 Mon Actual: cat labels.txt BUILD_TIME={{FORMATTED_DATE}}
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
the volatile
FORMATTED_DATE
is not being replaced during expand_template. ButBUILD_TIMESTAMP
does get replaced.Version
Development (host) and target OS/architectures:
OSX, darwin, arm64
Output of
bazel --version
:bazel 7.0.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:bazel_dep(name = "aspect_bazel_lib", version = "2.3.0")
Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: