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

Implicit targets and file-level deps #10054

Closed
benjyw opened this issue Jun 16, 2020 · 1 comment
Closed

Implicit targets and file-level deps #10054

benjyw opened this issue Jun 16, 2020 · 1 comment
Assignees
Milestone

Comments

@benjyw
Copy link
Contributor

benjyw commented Jun 16, 2020

We want to minimize the amount of BUILD file boilerplate that is necessary to adopt Pants. In cases where we can figure out what the right thing to do is, we should do that even without corresponding BUILD file structures.

A big part of this involves inferring dependencies where possible, e.g., by analyzing import statements in .py files.
These inferred dependencies naturally exist at the file level (that is, they express a dependency of a single file on another single file). So it makes sense to be able to model dependencies at that level, instead of/as well as at the target level.

Having file-level deps allows us to have "implicit targets" at the file level. So, for example, if the user enters ./pants binary path/to/main.py we can act as-if there's a corresponding python_binary target, even if there isn't one.

@benjyw benjyw modified the milestone: 1.28.x Jun 16, 2020
@benjyw benjyw mentioned this issue Jun 16, 2020
4 tasks
@stuhood stuhood removed their assignment Jul 16, 2020
@benjyw benjyw added this to the 2.0.0.alpha0 milestone Jul 16, 2020
@Eric-Arellano
Copy link
Contributor

This is now implemented, outside of documentation, possible bug fixes, and the optimization of #10354.

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

No branches or pull requests

3 participants