Skip to content

llbsolver: fix panic when requesting provenance on nil result#3462

Merged
jedevc merged 1 commit intomoby:masterfrom
tonistiigi:nil-provenance
Jan 6, 2023
Merged

llbsolver: fix panic when requesting provenance on nil result#3462
jedevc merged 1 commit intomoby:masterfrom
tonistiigi:nil-provenance

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Requesting provenance on build that returned nil resulted in daemon panic.

Theoretically, one could argue that even nil ref could have a provenance with frontend and build-arg names but trying to keep it turned out to be very complicated with a lot of functions needing exceptions as provenance is tracked per ref, not per result. If this becomes an issue somehow (are there any legit nil result builds?) then it can be revisited later. For now provenance is skipped for such builds, even if requested.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi mentioned this pull request Jan 6, 2023
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