Skip to content
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

fix: Use correct key for setting main build context #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Sep 11, 2024

The signer implementation was not using standard docker keys for setting the main build context, this made it so you can't use signers as standalone frontends executing by docker build.

This is a breaking change as anything implementing a signer will need to be updated to use the correct key.

The main change here is contextKey = "contextkey" instead of contextKey = "context".
You can see this in the dockerui package in buildkit: https://github.com/moby/buildkit/blob/d8d946b85c52095d34a52ce210960832f4e06775/frontend/dockerui/context.go#L29

Other changes are just propagating progress groups around so signing is a little easier to track the status of in the build logs and then tests to ensure that the main context is indeed being set as expected.

@cpuguy83 cpuguy83 added this to the v0.9.0 milestone Sep 11, 2024
@cpuguy83 cpuguy83 requested a review from a team as a code owner September 11, 2024 21:32
@cpuguy83 cpuguy83 force-pushed the signer_context_key branch 3 times, most recently from b17d3ac to 3b1ce31 Compare September 11, 2024 21:43
The signer implementation was not using standard docker keys for setting
the main build context, this made it so you can't use signers as
standalone frontends executing by `docker build`.

This is a breaking change as anything implementing a signer will need to
be updated to use the correct key.

Signed-off-by: Brian Goff <cpuguy83@gmail.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.

1 participant