bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.23k stars 4.07k forks source link

Incompatible: Remove legacy allowlist names #19493

Open comius opened 1 year ago

comius commented 1 year ago

The change removes legacy _whitelist_function_transition.

First merged and rolled back: https://github.com/bazelbuild/bazel/commit/10a46b1e85f0b5bf8564c125dd02cd4e70017452

The naming is in use in old rules_go, which several projects haven't upgraded.

comius commented 1 year ago

Help needed:

Pending fixes:

Fixed (not verified):

rules_docker was archived:

Buildfarm depends on rules_docker:

comius commented 1 year ago

cc @fmeum

comius commented 1 year ago

One month has passed, without maintainers upgrading rules_go. So I believe we can roll forward the change again.

fmeum commented 1 year ago

@comius Would you be supportive of a change to remove the allowlist attribute requirement for Bazel, for example via a flag that is unflipped within Google via a .blazerc line? I have never seen anyone specify a non-trivial package_group outside Google, especially not in publicly available rulesets.

comius commented 1 year ago

Actually I was thinking to change the implementation so that attribute is automatically added when there’s a transition.

The only problem is that I’d need it to either always point to @bazel_tools (simple) or add a flag to configure where it should point.

comius commented 1 year ago

Cc @gregestren

fmeum commented 1 year ago

If users do want to point it to a non-standard location, could they still explicitly add the attribute? If that is the case, then having it always point into @bazel_tools when it is added automatically sounds fine to me.

gregestren commented 1 year ago

I support removing the requirement from Bazel, whatever the implementation (both sound fine to me).

comius commented 1 year ago

Ack. Working on the implementation.

fmeum commented 1 year ago

@bazel-io flag

fmeum commented 1 year ago

@iancha1992 Could https://github.com/bazelbuild/bazel/commit/bb7fb2d32f055f2a70a5ab394cf5aef29bc74b2e be marked for cherry-picking to 7.0.0?

iancha1992 commented 1 year ago

@bazel-io fork 7.0.0