Repository navigation
Conversation
… buildifier executable targets.
Author
|
Suggest @keith for review |
Owner
|
i think i messed with this in #146, can you verify it's still an issue with that patch? if so can you add a ci test like i did on that pr to emulate it so we can make sure it doesn't regress |
Owner
|
lmk if that's still the case |
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.
When you are producing a binary for a test or executable rule, you must produce it for the current selected target platform. This is not the case for
buildifierandbuildifier_test.Update the rule to accept the toolchain files via default value attributes instead of a
toolchainsattribute. Here's a simple example. On MacOS, you may select a Linux execution platform because your run all your actions via remote execution. However, buildifier needs to be run locally. Onbuildifier-prebuilt/main, this is what you'll see:Why is it trying to run a Linux executable locally, when my target platform is MacOS? This is because the toolchain was selected for exec and rendered into the
buildifierrule. With this fix applied, we now properly see: