You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(bzlmod): make __init__.py generation configurable module-wide (#3997)
In #3841, a warning pushing users to migrate away from implicit
`__init__.py` generation was added. While it's good to flag this bad
behavior, silencing it requires users to either explicitly configure
this option on every `py_binary` and `py_test` target, or configure the
option globally in their `.bazelrc`.
To better facilitate a migration, this change introduces a mechanism for
modules to configure this option module-wide. This has multiple
benefits:
1. Everyone working in the module doesn't need to remember to explicitly
set `legacy_create_init` on every target.
2. Everyone that depends on the module receives the correct behavior as
configured by the module.
3. It becomes possible to tell BCR-wide which modules have adopted this
migration.
Work towards #2945
---------
Co-authored-by: Richard Levasseur <richardlev@gmail.com>
0 commit comments