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
fix(bzlmod): use same target in requirement('foo') and all_requirements (#1973)
We have at least one instance in our pre-bzlmod workspace like:
```
deps = list(all_requirements)
deps.remove(requirement('foo'))
```
But when using bzlmod, the generated `all_requirements` list contains
targets like `@@rules_python~~pip~my_deps//sqlalchemy:sqlalchemy`,
whereas `requirement('sqlalchemy')` will return
`@@rules_python~~pip~my_deps//sqlalchemy:pkg`. So this operation now
fails.
This change makes `all_requirements` also use the `:pkg` targets to
match `requirement`.
0 commit comments