Skip to content

driver: don't create tracer delegate opt if tracer is nil #1383

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

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

jedevc
Copy link
Collaborator

@jedevc jedevc commented Oct 31, 2022

🛠️ fixes moby/buildkit#3242

The error handling for the cast to client.TracerDelegate was incorrect, and previously, a client would unconditionally append an opt.

This results in the scenario that while the ClientOpt was not nil, the tracer delegate in the ClientOpt was, which isn't an error case explicitly handled by buildkit.

We might want to follow up in buildkit here and add an explicit nil check for withTracerDelegate.TracerDelegate == nil as a sanity check.

The error handling for the cast to client.TracerDelegate was incorrect,
and previously, a client would unconditionally append an opt.

This results in the scenario that while the ClientOpt was not nil, the
tracer delegate in the ClientOpt was, which isn't an error case
explicitly handled by buildkit.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buildkit failing after MacOS ventura update
3 participants