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

Return better error messages for missing config #1005

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

jonjohnsonjr
Copy link
Contributor

Fixes #1001

$ apko build /does/not/exist  example.com:latest ./out
ℹ️            | loading config file: /does/not/exist
⚠️            | loading config file failed: open /does/not/exist: no such file or directory
⚠️            | attempting to load remote configuration
⚠️            | NOTE: remote configurations are an experimental feature and subject to change.
⚠️            | loading remote configuration failed: unable to fetch remote include from git: failed to clone /does/not/exist: Get "https://does/not/info/refs?service=git-upload-pack": dial tcp: lookup does: no such host
Error: failed to load image configuration: open /does/not/exist: no such file or directory
2024/01/05 14:38:51 error during command execution: failed to load image configuration: open /does/not/exist: no such file or directory

@jonjohnsonjr jonjohnsonjr merged commit 2d813ed into chainguard-dev:main Jan 5, 2024
20 checks passed
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.

Misleading error for missing file
2 participants