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

Validate KO_CONFIG_PATH #471

Merged
merged 2 commits into from
Feb 8, 2022
Merged

Conversation

tcnghia
Copy link
Contributor

@tcnghia tcnghia commented Oct 11, 2021

This avoids surprises when:

  • users include .ko.yaml in their KO_CONFIG_PATH (i.e. pointing to a file)
  • users specify a wrong directory

@google-cla google-cla bot added the cla: yes label Oct 11, 2021
@tcnghia tcnghia changed the title Validate KO_CONFIG_PATH to avoid ignored options Validate KO_CONFIG_PATH Oct 11, 2021
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2021

Codecov Report

Merging #471 (872411c) into main (1425e4b) will increase coverage by 0.29%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #471      +/-   ##
==========================================
+ Coverage   48.58%   48.87%   +0.29%     
==========================================
  Files          43       43              
  Lines        2221     2230       +9     
==========================================
+ Hits         1079     1090      +11     
+ Misses        956      955       -1     
+ Partials      186      185       -1     
Impacted Files Coverage Δ
pkg/commands/options/build.go 69.62% <80.00%> (+6.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1425e4b...872411c. Read the comment docs.

@tcnghia
Copy link
Contributor Author

tcnghia commented Oct 11, 2021

This change will break users that had their KO_CONFIG_PATH ignored previously.

@tcnghia
Copy link
Contributor Author

tcnghia commented Oct 26, 2021

@imjasonh can you please help merge after I fix the conflict? thanks

imjasonh
imjasonh previously approved these changes Oct 27, 2021
@jonjohnsonjr
Copy link
Collaborator

More conflicts :) one more rebase?

@imjasonh imjasonh mentioned this pull request Feb 8, 2022
imjasonh
imjasonh previously approved these changes Feb 8, 2022
pkg/commands/options/build.go Outdated Show resolved Hide resolved
Copy link
Member

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

Thanks!

@tcnghia
Copy link
Contributor Author

tcnghia commented Feb 8, 2022

@imjasonh I don't have merge permission so you'll have to merge it before we run into conflicts :D

@jonjohnsonjr jonjohnsonjr merged commit 3e5ee5b into ko-build:main Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants