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

build: don't force default configuration #2600

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Jul 15, 2024

RunBuild accepts a command.Cli interface, but the configuration it ultimately uses for builds is always sourced from LoadDefaultConfigFile. This makes it impossible for custom Cli implementations to directly provide their own non-default ConfigFile.

This PR changes the logic to use the output of cli.ConfigFile() instead of LoadDefaultConfigFile. The common-case DockerCli implementation will continue to use the result of LoadDefaultConfigFile (ref, ref), however it will now respect the CLI's error stream instead of forcing stderr.

@blampe blampe force-pushed the blampe/build-config branch from f457ea2 to 6c929a4 Compare July 15, 2024 19:32
@thompson-shaun thompson-shaun added this to the v0.17.0 milestone Jul 17, 2024
@tonistiigi tonistiigi merged commit 1651809 into docker:master Jul 24, 2024
104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants