-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing provenance errors when context does not exist #3928
Comments
So I can reproduce this 🎉 This is a bit fiddly. Here's my guess as to what's happening:
I think the provenance code expects frontend calls to solve to be propagated, instead of silently being discarded (as we do for the dockerignore). Not quite sure what we expect to do here. I wonder if we just should skip this provenance case? And not skip past when we're recorded an error? Or maybe we should propagate certain types of dockerignore read failures, instead of the broad buildkit/frontend/dockerui/config.go Lines 375 to 380 in 40c5efa
|
To add on - I think the correct call is that the client should be checking that the directory needs to exist - but also, there are plenty of edge-cases where you could imagine a directory being deleted halfway through a build or similar, so we still need to fix this. |
Managed to write a failing test case: b35f95a. Since the context isn't accessed in the Dockerfile, then the build shouldn't fail. |
Description
If I try to build from the API without a context, I get an error like:
Repro steps
I wrote a little tool for debugging the buildkit api.
there's nothing special in this script, it uses the docker client libraries to talk to the ImageBuild api in docker engine
https://github.com/tilt-dev/tilt/blob/master/cmd/buildkitapi/main.go
Expected result
No error
Additional info
This is a recent regression that started happening with Docker Engine 24.0 / Docker Desktop 4.20
Boiled down from tilt-dev/tilt#6125
The text was updated successfully, but these errors were encountered: