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

Viper keys are case insensitive. #150

Merged
merged 2 commits into from
Apr 20, 2020
Merged

Conversation

mattmoor
Copy link
Collaborator

This fixes an issue where import paths with uppercase (github.com/GoogleCloudPlatform 👀) were being canonicalized by Viper to all lowercase and the baseImageOverrides in .ko.yaml were failing to properly identify the base image.

I hit this in: tektoncd/pipeline#2435 trying to opt some of the GCP images out of :nonroot.

This also adds some logging to a place where I see a lot of folks have issues with ko where we swallow an error. I hit it experimenting with variants on the ko publish import path, and added the logging to debug.

This fixes an issue where import paths with uppercase (github.com/GoogleCloudPlatform 👀) were being canonicalized by Viper to all lowercase and the baseImageOverrides in `.ko.yaml` were failing to properly identify the base image.

I hit this in: tektoncd/pipeline#2435 trying to opt some of the GCP images out of `:nonroot`.

This also adds some logging to a place where I see a lot of folks have issues with `ko` where we swallow an error.  I hit it experimenting with variants on the `ko publish` import path, and added the logging to debug.
@mattmoor mattmoor merged commit f45bc13 into ko-build:master Apr 20, 2020
@mattmoor mattmoor deleted the fix-case-bug branch April 20, 2020 16:13
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.

3 participants