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

Add checks to avoid provenance and sbom post processing if not results were created #3805

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Apr 18, 2023

⬆️ Follow-up to #3462.

This fixes the panic that we can trigger in docker/buildx#1640 (comment).

This scenario would happen if we returned a result containing no refs, but the solve opt specified we should have some platforms, we'd still attempt to access them, and panic.

This is probably a candidate for cherry-picking.

cc @ktock

@jedevc jedevc force-pushed the ref-may-be-empty branch from d4090c6 to 7ca2cd9 Compare April 18, 2023 13:32
@tonistiigi tonistiigi merged commit 1077362 into moby:master Apr 18, 2023
@jedevc jedevc deleted the ref-may-be-empty branch April 18, 2023 17:51
@thaJeztah
Copy link
Member

this was cherry-picked in #3810

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.

3 participants