From #530 (comment)
A few points to note:
-
The -B (--base-import-paths) and --bare flags are not designed to be used together, and in this case, -B takes precedence: https://github.com/google/ko#naming-images
-
The main field in .ko.yaml is a directory, not a full Go import path.
-
If your .ko.yaml and go.mod are in the same directory as your main package, and if this directory is also your working directory, then you can leave out dir and main.
-
ko sets CGO_ENABLED=0 by default.
Each of these could be warnings or errors to help make .ko.yaml easier to use and less needlessly verbose.
From #530 (comment)
Each of these could be warnings or errors to help make
.ko.yamleasier to use and less needlessly verbose.