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
I don't think this is a regression as I've seen this since I started using gazelle.
Description
When running gazelle on a directory with a new .py file that satisfies the constraints for a py_binary, it will replace existing py_binary definitions for this new .py file.
🔬 Minimal Reproduction
Here's a reproduction on my personal repo, lmk if it'd be easier to make a whole new repo:
🐞 bug report
Affected Rule
Is this a regression?
I don't think this is a regression as I've seen this since I started using gazelle.
Description
When running gazelle on a directory with a new
.py
file that satisfies the constraints for apy_binary
, it will replace existingpy_binary
definitions for this new.py
file.🔬 Minimal Reproduction
Here's a reproduction on my personal repo, lmk if it'd be easier to make a whole new repo:
michael-christen/toolbox#213
I'm not having much luck with a simpler attempt at reproduction:
That is because fix: Gazelle bug with merging py_binary targets in per-file mode and partial update #2619 fixed this, going to prior commits, it was reproducible.
Note that this issue is a duplicate of Gazelle generation mode per file: Unexpected behavior if a binary is added to a folder containing a binary. #2627.
🔥 Exception or Error
No exception, just a silent overriding of behavior.
🌍 Your Environment
Operating System:
Output of
bazel version
:bazel commit: bazelbuild/bazel@0ddcfd3
Rules_python version:
Anything else relevant?
I've seen this across a wide variety of repos and setups.
is configured in
BUILD
The text was updated successfully, but these errors were encountered: