build: fix multi-node merge to read descriptor from result by tonistiigi · Pull Request #1566 · docker/buildx (original) (raw)

fixes #1519

While the merge from imagetools create used the correct input descriptor that it asked from the registry, the call of the same function from multi-node build just made up a descriptor from the digest.

What is weirder is that the mediatype that the previous code used, didn't really matter because requests have Accept: */* passed. But at least for hub it looks like for OCI objects even Accept: */* gives an error, while for the old objects, you don't need to pass the correct header(this is why the merge worked both for merging lists and images). Not sure if this is registry specific. I'm trying to find out what behavior is expected from the registry side in this case.

@smira

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com