Commit 9b73d02
authored
chore(pip_parse, gazelle): generate/use hub repo aliases by default (#1525)
This makes `pip_parse.incompatible_generate_aliases = True` the default.
This only affects
workspace builds; it is already the default for bzlmod.
Summary:
- Enable the generation of aliases in `pip_repository`.
- Flip usage of aliases in `gazelle`.
- Remove usage of the old flags from the example code.
- Update the `gazelle` manifest generator to leave the
`gazelle_python.yaml` manifest unchanged for people who have
`use_pip_repository_aliases = True` in their `BUILD.bazel` files.
Once they remove the flag, the `gazelle_python.yaml` will be updated.
- Update `multi_pip_parse` to handle sub-hub repositories where
the `all_requirements` returns aliased targets.
Fixes #14981 parent 2a074f8 commit 9b73d02
File tree
30 files changed
+124
-663
lines changed- examples
- build_file_generation
- bzlmod_build_file_generation
- bzlmod
- pip_parse_vendored
- gazelle
- manifest
- generate
- pythonconfig
- python/testdata
- dependency_resolution_order
- file_name_matches_import_statement
- ignored_invalid_imported_module
- monorepo
- coarse_grained
- one
- bar
- three
- two
- python_ignore_dependencies_directive
- python_target_with_test_in_name
- with_nested_import_statements
- with_third_party_requirements_from_imports
- with_third_party_requirements
- python
- pip_install
30 files changed
+124
-663
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
34 | 46 | | |
35 | 47 | | |
36 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
0 commit comments