You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a defaultBaseImage that is an image manifest rather than a image index, it seems that ko will just build for that image's platform, happily ignoring whatever you pass via --platforms.
❯ ko build --platform=all .
2022/05/05 10:57:43 Using base gcr.io/distroless/static@sha256:abb120b4ebb4e734dc4c82181bb32b5a4f8bcf78e4540b094b9d59ba7a29a5ad for github.com/benmoss/wtf-ko
2022/05/05 10:57:43 Building github.com/benmoss/wtf-ko for linux/amd64
2022/05/05 10:57:44 Loading kind.local/wtf-ko-3d3e10e27ff19c6d1d54aaa50fb62fd9:843abadc2e51b54f34fe7c0bee50f99c4462593efc183b6867b72573aa0bf572
2022/05/05 10:57:44 Loaded kind.local/wtf-ko-3d3e10e27ff19c6d1d54aaa50fb62fd9:843abadc2e51b54f34fe7c0bee50f99c4462593efc183b6867b72573aa0bf572
2022/05/05 10:57:44 Adding tag latest
2022/05/05 10:57:44 Added tag latest
kind.local/wtf-ko-3d3e10e27ff19c6d1d54aaa50fb62fd9:843abadc2e51b54f34fe7c0bee50f99c4462593efc183b6867b72573aa0bf572
The text was updated successfully, but these errors were encountered:
--platform=all is actually kind of ambiguous, since I think it tends to mean "build all platforms supported by the base", so this might technically be correct.
This might be a better demonstration of the problem:
❯ ko build --platform=linux/arm64 .
2022/05/05 11:10:52 Using base gcr.io/distroless/static@sha256:abb120b4ebb4e734dc4c82181bb32b5a4f8bcf78e4540b094b9d59ba7a29a5ad for github.com/benmoss/wtf-ko
2022/05/05 11:10:52 Building github.com/benmoss/wtf-ko for linux/amd64
2022/05/05 11:10:52 Loading kind.local/wtf-ko-3d3e10e27ff19c6d1d54aaa50fb62fd9:843abadc2e51b54f34fe7c0bee50f99c4462593efc183b6867b72573aa0bf572
2022/05/05 11:10:53 Loaded kind.local/wtf-ko-3d3e10e27ff19c6d1d54aaa50fb62fd9:843abadc2e51b54f34fe7c0bee50f99c4462593efc183b6867b72573aa0bf572
2022/05/05 11:10:53 Adding tag latest
2022/05/05 11:10:53 Added tag latest
kind.local/wtf-ko-3d3e10e27ff19c6d1d54aaa50fb62fd9:843abadc2e51b54f34fe7c0bee50f99c4462593efc183b6867b72573aa0bf572
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.
If you have a
defaultBaseImage
that is an image manifest rather than a image index, it seems that ko will just build for that image's platform, happily ignoring whatever you pass via--platforms
.Repro here: https://github.com/benmoss/wtf-ko
The text was updated successfully, but these errors were encountered: