Skip to content

Improve errors/warnings for unnecessary .ko.yaml settings #542

@imjasonh

Description

@imjasonh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions