-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Go: should _go_external_package
dependency inference move to target generation?
#12928
Comments
If we remove the pants/src/python/pants/backend/go/util_rules/external_module.py Lines 271 to 283 in 6d7f305
Then we can get all the metadata we need in a single |
In general, I don't think so... On the other hand, it would probably be fine for the |
Target generation opens up a new possibility: dynamically inferring deps at target generation time, rather than dependency resolution time. Would it make sense to do that?
I think this would imply that
_go_external_package
targets would only depend on other targets defined in the samego.mod
, which maybe we want?Possible pros to explore:
./pants peek
is more interesting because it includes values in thedependencies
field, whereas you'd otherwise have to use./pants dependencies
A con is that manually declared
_go_external_package
targets are much less practical. Although we might not care about this.The text was updated successfully, but these errors were encountered: