Repository navigation
feat(builtin): accept any stamp vars in pkg_npm - #2157
Merged
Merged
Conversation
alexeagle
force-pushed
the
issue1694
branch
2 times, most recently
from
August 30, 2020 18:11
c6ec8b0 to
cd0763d
Compare
alexeagle
marked this pull request as ready for review
August 30, 2020 18:51
alexeagle
requested review from
gregmagolan,
mattem and
soldair
as code owners
August 30, 2020 18:51
alexeagle
force-pushed
the
issue1694
branch
2 times, most recently
from
August 30, 2020 19:35
75278e6 to
4c7b4e7
Compare
mattem
reviewed
Aug 31, 2020
| ```python | ||
| pkg_npm( | ||
| name = "npm_package", | ||
| substitutions = {"0.0.0-PLACEHOLDER": "{STABLE_GIT_COMMIT}"}, |
Collaborator
There was a problem hiding this comment.
do we need to make it clearer that if --stamp isn't set, the placeholder will be left alone, rather than set to empty string? Or what happens if the variable isn't defined?
Collaborator
Author
There was a problem hiding this comment.
yes, that's a subtle behavior change in this PR actually, we used to replace it with 0.0.0 if there was no stamp info. I'll update the doc and the commit description
added 2 commits
August 31, 2020 08:17
NOTE: instead of replacing the replace_with_version with 0.0.0 in unstamped builds, we now omit the replacement. See bazel-contrib#1694
Also move most of the content above the list of rules. It shows up better in the TOC since rollup_bundle can be its own entry later in the page, and avoids the API doc table of attributes just appearing with no header.
mattem
approved these changes
Aug 31, 2020
This was referenced Aug 31, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #1694