Closed
Description
🐞 bug report
Affected Rule
npm_package
Is this a regression?
No
Description
Currently the version placeholder in the npm_package
is populated by retrieving the version through a volatile stamp variable called: BUILD_SCM_VERSION
.
This is not ideal because whenever the version changes, the npm_package
targets are not re-built. Causing the old version to be part of the npm_package
output.
Ideally the version placeholder would be a stable/non-volatile stamp variable that will cause the npm_package
targets to be rebuilt if the version changes. Since this happens rarely and intentionally causes the version to be updated, it sounds like a reasonable solution.
Read more about stamp variables here: https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
Metadata
Metadata
Assignees
Labels
No labels