-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
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
Replace escape_locations
with escape_locations_and_make_variables
everywhere
#861
Replace escape_locations
with escape_locations_and_make_variables
everywhere
#861
Conversation
df43ab5
to
6a51c43
Compare
The RBE job fails with
That does look too generic to be caused by this PR, but I'm not sure. @UebelAndre Have you seen this before? |
I tested this locally and it seems to address the issue as well. |
19f593b
to
9468131
Compare
@fmeum I've just merged a PR to pin buildifier to the previous version which should resolve the build failures here on a rebase |
Also fixes the docstring.
Adds support for types other than dict and non-attr values in the same way as expand_locations.
expand_locations leads to broken commandlines if used by itself since it expects dollar signs to be escaped, but does not unescape them. This is a mildly breaking change as previously accepted uses of $ now have to be replaced by $$. As a benefit, this escaping scheme is now consistent across all attributes as well as with Bazel native rules.
Co-authored-by: James Sharpe <[email protected]>
9468131
to
db51890
Compare
It would be great if you we could push a new release including this PR, as I have some failing builds (that were passing in an ancient version using some other workarounds), and resolving those failures requires this change to be merged. |
Pin to the current main branch while we get a release that includes bazel-contrib/rules_foreign_cc#861.
Can you create a new issue requesting the release so we can track it better? |
* Fix some Emscripten builds. * Move mirror URLs to the bottom to avoid 404 warnings. Plus, on GitHub CI I suspect GitHub URLs should be faster anyway. * Fix remaining Emscripten builds. This requires some new changes from rules_foreign_cc to support Make variable substitution in several other places. * Update rules_foreign_cc. Pin to the current main branch while we get a release that includes bazel-contrib/rules_foreign_cc#861.
This fixes #857 fundamentally by adressing the root cause -
expand_locations
can't be applied to a shell command fragment by itself as it doesn't unescape$$
.I divided this PR into individual commits with more detailed commit messages to make the review easier, but feel free to squash them in the end if that's your preferred workflow.