-
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
Add --incompatible_use_platforms_repo_for_constraints #8625
Conversation
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: bazelbuild#8622 Tracking issue: bazelbuild#6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See bazelbuild#8622 for details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you handling all uses of @bazel_tools//platforms in this change, or in a series?
Off the top of my head:
- cc_configure-generated toolchains
- Possibly Java toolchains in tools/jdk
- LocalConfigPlatformFunction: https://source.bazel.build/bazel/+/master:src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java;l=81?q=LocalConfigPlatform?
Yeah I will eventually (was running presubmits to see what will break, then got derailed by the rollback of @bazel_tools and @platforms cl :) I'll ping you when this is ready to be reviewed (assuming you have no objections to the approach in general). |
The approach is good, although I'm worried about dependency cycles (alias needs a configuration, but not platforms need the alias, but configurations need a platform...). Passing tests will reassure me greatly. |
* master: (33 commits) Make setAllowResidue and enableParamsFileSupport private. Embed @platforms into the Bazel binary Add flag to enable the JSON profile by default. Deflake test_build_fail_terse_summary. Add WalkableGraph#getValueAndRdeps that allows fetching both the rdeps and value in a single call Add new flag to Stardoc and allows Stardoc to output raw serialized proto. Require the "command" param of run_shell is a string Delete some messages formerly used for serialization code which no longer exists Only eagerly read dependency files when Bazel-side Java classpath reduction is used. Otherwise, this is just wasted effort. Rename SkylarkMutable to StarlarkMutable Fix import_deps_checker to use the correct OptionsParser factory method. Don't capture a member in the lambda created in JavaHeaderCompileActionBuilder. Otherwise, that capture keeps the entire Builder instance alive, consuming memory. Refactor the server startup codepath Clean up usages of setAllowResidue and enableParamsFileSupport to pass values into the factory method. Don't allow ctx.split_attr to access starlark transitions attributes. Include intermediate output key as a typed parameter for ParallelVisitor. Remove SkylarkAttributeAspect and friends Update android_tools and create version 0.6. Remove the flag `incompatible_disallow_native_in_build_file` Remove the flag `incompatible_no_kwargs_in_build_files`. ...
Ptal! Looks green on the CI :) |
Actually let me import it and see what happens internally. |
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: bazelbuild#8622 Tracking issue: bazelbuild#6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See bazelbuild#8622 for details. Closes bazelbuild#8625. PiperOrigin-RevId: 253242115
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: #8622 Tracking issue: #6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See #8622 for details. Closes #8625. This is encore of 332379a. Previous implementation failed with dependency cycle with the configuration. In this attempt I don't use selects, but I've put the incompatible flag checking logic directly into the alias rule. Not nice, but get's thing done. RELNOTES: PiperOrigin-RevId: 254357477
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: bazelbuild#8622 Tracking issue: bazelbuild#6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See bazelbuild#8622 for details. Closes bazelbuild#8625. PiperOrigin-RevId: 253242115
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: bazelbuild#8622 Tracking issue: bazelbuild#6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See bazelbuild#8622 for details. Closes bazelbuild#8625. This is encore of bazelbuild@332379a. Previous implementation failed with dependency cycle with the configuration. In this attempt I don't use selects, but I've put the incompatible flag checking logic directly into the alias rule. Not nice, but get's thing done. RELNOTES: PiperOrigin-RevId: 254357477
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: bazelbuild#8622 Tracking issue: bazelbuild#6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See bazelbuild#8622 for details. Closes bazelbuild#8625. PiperOrigin-RevId: 253242115
This change adds an incompatible flag to disable constrains bundled with Bazel in @bazel_tools. Incompatible change issue: bazelbuild#8622 Tracking issue: bazelbuild#6516 RELNOTES: Incompatible change `--incompatible_use_platforms_repo_for_constraints` has been added. See bazelbuild#8622 for details. Closes bazelbuild#8625. This is encore of bazelbuild@332379a. Previous implementation failed with dependency cycle with the configuration. In this attempt I don't use selects, but I've put the incompatible flag checking logic directly into the alias rule. Not nice, but get's thing done. RELNOTES: PiperOrigin-RevId: 254357477
This change adds an incompatible flag to disable constrains bundled with Bazel
in @bazel_tools.
Incompatible change issue:
#8622
Tracking issue:
#6516
RELNOTES: Incompatible change
--incompatible_use_platforms_repo_for_constraints
has been added. See #8622 for details.