-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ban "--platforms" from config_setting #8896
Comments
@katre , @hlopko , @aragos for input. I'm happy to implement if it makes sense. We could take this even farther and ban everything in PlatformOptions. This is also an opportunity to conservatively roll out platform support + best practices, then relax these restrictions only when/if we see clear need to. |
Also comment from @katre on the original thread:
|
I like the concept. Ideally it'd be more flexible than just a blacklist in config_setting: possibly a new setting/metadata on individual flags? |
+1 I've also had this thought with respect to flags labeled "experimental". |
Looks like we already have precedent: bazel/src/main/java/com/google/devtools/build/lib/analysis/config/FragmentOptions.java Lines 117 to 136 in 4760cc3
|
While there's a broader theme this highlights, this bug should remain focused specifically on I'm going to close this since there's no urgency for this yet and I don't think that's happening soon. We can re-open when/if we sense this is truly something to worry about. |
Description of the problem / feature request:
Spawned from this comment thread: https://docs.google.com/a/google.com/document/d/1UZaVcL08wePB41ATZHcxQV4Pu1YfA1RvvWm8FbZHuW8/edit?disco=AAAADQko1J8
We want to discourage
select()
ing on platforms, in preference forconstraint_setting
s. In other words, it's far preferable to have:than separate
config_setting
s for every specific Linux-based platform definition.Feature requests: what underlying problem are you trying to solve with this feature?
Sane, maintainable, generic multi-platform support.
More rationale: https://github.com/hlopko/bazel_platforms_examples/blob/4019120264181e491bc148a5e874e1de55b01f58/examples/05_select_on_platform/README.md
Have you found anything relevant by searching the web?
#8583 - would allow embedding this directly in
select
(no need for an intermediateconfig_setting
)The text was updated successfully, but these errors were encountered: