E469 [BUG] .ko.yaml defaultFlags is ignored · Issue #1568 · ko-build/ko · GitHub
[go: up one dir, main page]

Skip to content

[BUG] .ko.yaml defaultFlags is ignored #1568

@trever-atr

Description

@trever-atr

defaultFlags is always ignored by ko.

already opened once in #1450 and fix provided in PR #1464.

this is still an issue and represents a major bug!


another issue is that an empty builds:ldflags does not override defaultLdflags.
this may also be the case for defaultFlags, hard to test currently though...

defaultLdflags:
  - -s -w
  - -extldflags "-static"

builds:
  - id: dynamic
    main: ./cmd/dynamic/example
    ldflags: []  ## does not override global defaults with empty list
    # ldflags: [ "" ]  ## dummy entry needed to override

@imjasonh @jonjohnsonjr @mattmoor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0