Skip to content

[Bug]: py_venv_binary logging collisions even with package_collisions = "ignore" #676

@brett-patterson-ent

Description

@brett-patterson-ent

What happened?

A py_venv_binary rule is logging collisions even with package_collisions = "ignore". This is the behavior I would expect from package_collisions = "warning".

In our use case, we know that we have some collisions due to namespaced packages (e.g. all Google Cloud SDK libraries will provide google/cloud/__init__.py) so we would like to suppress the warnings entirely.

Version

Development (host) and target OS/architectures: Ubuntu 22.04.1 x86_64

Output of bazel --version:
aspect oss 2024.49.18-4472f3c (with local changes)
Bazel version is 8.4.2

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.5")

Language(s) and/or frameworks involved: Python

How to reproduce

Any `py_venv_binary` rule with collisions in the srcs or deps and `package_collisions = "ignore"` should reproduce.

Any other information?

Seems like this print should respect emit_error

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions