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

[Docker] Fix bug when a putative target address did not exist. #14125

Merged
merged 1 commit into from Jan 10, 2022

Conversation

kaos
Copy link
Member

@kaos kaos commented Jan 9, 2022

The issue was that we attempted to translate all inferred addresses for dependencies to targets, and if they didn't exist, boom.

This fix goes via all known addresses for the relevant directories, and filters the list of inferred addresses down to what is actually defined.

Fixes #14031

@kaos
Copy link
Member Author

kaos commented Jan 9, 2022

For dep inference, it would be desirable to be able to go from a built artifact path to the target address that built it, rather than guessing, as we do now. ;)

@kaos
Copy link
Member Author

kaos commented Jan 9, 2022

Added cherry-pick label, as I think it would be nice to have this fixed also in 2.9.x

@stuhood stuhood merged commit de987cd into pantsbuild:main Jan 10, 2022
@stuhood
Copy link
Sponsor Member

stuhood commented Jan 10, 2022

@kaos : This doesn't quite pick cleanly, so I'll leave that for you. I had been thinking about cutting 2.9.x tomorrow, but we can wait for this if need be.

@kaos kaos deleted the 14031 branch January 10, 2022 20:23
kaos added a commit to kaos/pants that referenced this pull request Jan 10, 2022
…build#14125)

The issue was that we attempted to translate all inferred addresses for dependencies to targets, and if they didn't exist, boom.

This fix goes via all known addresses for the relevant directories, and filters the list of inferred addresses down to what is actually defined.

Fixes pantsbuild#14031.

[ci skip-rust]

[ci skip-build-wheels]
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.

ResolveError: Directory '{mydir}' does not contain any BUILD files (when Dockerizing packages)
2 participants