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

buildkitd: handle config loading errors correctly #2650

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

tonistiigi
Copy link
Member

fix #2542

Looks like the panic comes because this function returns an empty object instead of setting the default options. New behavior is that if the default config does not exist there is no error, if toml parsing fails it is a real error and if there is a file error(eg. EPERM) then warning is printed.

Signed-off-by: Tonis Tiigi [email protected]

@AkihiroSuda AkihiroSuda merged commit 8821787 into moby:master Feb 17, 2022
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.

push to insecure registry (panic: runtime error: index out of range [0] with length 0)
3 participants