Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: propagate target_compatible_with to _py_env when creating a … #438

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RoyShulman
Copy link

Hi!
This fixes #437.

This is my first issue so I'm not sure if this is the right thing to do.
Tell me if this is good or you want me to change anything :)

@CLAassistant
Copy link

CLAassistant commented Nov 14, 2024

CLA assistant check
All committers have signed the CLA.

py/defs.bzl Outdated
@@ -90,6 +90,7 @@ def _py_binary_or_test(name, rule, srcs, main, deps = [], resolutions = {}, **kw
package_collisions = package_collisions,
tags = ["manual"],
testonly = kwargs.get("testonly", False),
target_compatible_with = kwargs.get("target_compatible_with", False),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want the default here to either be [] or None.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! I copied from the line above and missed that thanks

@mattem
Copy link
Collaborator

mattem commented Nov 19, 2024

Thanks, are you able to sign the CLA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: py_test macro doesn't propagate target_compatible_with to _py_venv when building targets
3 participants