Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

hlopko
Copy link
Member

@hlopko hlopko commented Jun 13, 2019

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.

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.
@hlopko hlopko requested a review from katre June 13, 2019 09:19
Copy link
Member

@katre katre left a 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:

@hlopko
Copy link
Member Author

hlopko commented Jun 13, 2019

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).

@katre
Copy link
Member

katre commented Jun 13, 2019

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.

@hlopko hlopko requested a review from tualeron as a code owner June 14, 2019 08:19
hlopko added 4 commits June 14, 2019 11:10
* 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`.
  ...
@hlopko
Copy link
Member Author

hlopko commented Jun 14, 2019

Ptal! Looks green on the CI :)

@hlopko
Copy link
Member Author

hlopko commented Jun 14, 2019

Actually let me import it and see what happens internally.

@bazel-io bazel-io closed this in 332379a Jun 14, 2019
irengrig pushed a commit to irengrig/bazel that referenced this pull request Jun 18, 2019
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
bazel-io pushed a commit that referenced this pull request Jun 21, 2019
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
siberex pushed a commit to siberex/bazel that referenced this pull request Jul 4, 2019
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
siberex pushed a commit to siberex/bazel that referenced this pull request Jul 4, 2019
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
irengrig pushed a commit to irengrig/bazel that referenced this pull request Jul 15, 2019
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
irengrig pushed a commit to irengrig/bazel that referenced this pull request Jul 15, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants