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: Allow overriding FROM args when determining upstream image dependencies #18009

Conversation

tobni
Copy link
Contributor

@tobni tobni commented Jan 15, 2023

This solution allows docker_build_args to override the

ARG VAR=<address>
FROM $VAR

inference by assuming a supplied docker build arg option is preferred to the "default value" in the Dockerfile when inferring dependencies and assembling docker build context.

Fixes #18004.

@kaos kaos added the category:bugfix Bug fixes for released features label Jan 15, 2023
Copy link
Member

@kaos kaos left a comment

Choose a reason for hiding this comment

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

Thanks!

Snyggt :)

@kaos kaos merged commit 21ac257 into pantsbuild:main Jan 23, 2023
@tobni tobni deleted the fix/docker-allow-build-args-to-override-from-image-args branch February 1, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker build args dependency inference happens too early
2 participants