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 #431

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

pmengelbert
Copy link
Contributor

@cpuguy83 - this is just a rebase of #368 . It took quite a bit of merge conflict handling, so please review carefully.

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.

supersedes #368

@pmengelbert pmengelbert requested a review from a team as a code owner November 12, 2024 16:17
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>
@pmengelbert pmengelbert force-pushed the pmengelbert/signer_context_key/1 branch from e660148 to f68f5a6 Compare November 12, 2024 18:03
@pmengelbert pmengelbert requested a review from cpuguy83 November 12, 2024 20:48
@cpuguy83 cpuguy83 merged commit 5a8dfc4 into Azure:main Nov 14, 2024
9 checks passed
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.

2 participants