Open ciaranmcnulty opened 2 years ago
Ah, I was not authenticated with the [REDACTED]
registry - retrying gave me a 401 error instead
So had a brief investigation: I think what's causing this is that the AuthProvider on the client is queried for some token, but at the point that we receive the request, we've now finished the build and shut down the progress writer - however the AuthProvider is still listening and handling incoming requests potentially.
Not quite sure, it's not immediately obvious why that channel has been closed.
So this is actually a docker buildx
issue but I can't transfer cross-org. The progress writer lib should make it sure that if the progresswriter is closed then running goroutines can't write to it. Also, all child goroutines should be closed before the progresswriter gets closed.
Context: a
docker compose build
on a fresh checkout of a project. Some images were pulling, presumably something timed out when authenticating?Hoping you can see what's happened from the line numbers maybe