Closed treuherz closed 6 days ago
From a bit more reading, I've found part of the problem. The "merging manifest lists" task uses imagetools' Combine method to build the overall index but passes nil
to the ann
argument. I could fix this by plumbing the annotations through in Options
, and probably lifting the parsing and validation currently in Combine out to its other call-site since those limitations seem specific to buildx imagetools create
.
If that sounds alright as an approach then I can get a PR together quite quickly, although I'm not sure where to add tests
Contributing guidelines
I've found a bug and checked that ...
Description
If building a multi-platform image using a multi-node buildx instance and specifying an annotation for the index, no annotation is on the pushed index. Single-platform builds, or multi-platform builds running on a single node all work fine.
Expected behaviour
Expect to see the annotation you specified:
Actual behaviour
No annotations on the returned JSON.
Buildx version
github.com/docker/buildx v0.14.1-desktop.1 5a0555e6c99a65811f4409bce8460a8fb89474f1
Docker info
Builders list
Configuration
Build logs
Additional info
The main difference I noticed in the log for kubernetes-multi was that it says "merging manifest list", so possibly the annotations are getting lost in the merge. With a few pointers I'd be happy to contribute a PR for this but the code that produces that log was hard for me to follow from a cold start.