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

bake: check printer before printing warnings #2603

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

crazy-max
Copy link
Member

fixes #2598

A simple fix for a patch release but we should do a proper one as follow-up to avoid this situation with printer in the first place.

Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is safe. Iiuc the printer = nil and WithOnClose() happen in different goroutines. So even if nil check passes it might be nil once it gets to printWarnings

@crazy-max
Copy link
Member Author

I don't think this is safe. Iiuc the printer = nil and WithOnClose() happen in different goroutines. So even if nil check passes it might be nil once it gets to printWarnings

Ah true, I'm taking another look

@crazy-max crazy-max marked this pull request as draft July 17, 2024 07:22
@crazy-max

This comment was marked as outdated.

@crazy-max crazy-max closed this Jul 17, 2024
@crazy-max crazy-max deleted the bake-fix-progress-panic branch July 17, 2024 12:23
@crazy-max crazy-max removed this from the v0.16.1 milestone Jul 17, 2024
@crazy-max crazy-max restored the bake-fix-progress-panic branch July 18, 2024 15:37
@crazy-max crazy-max reopened this Jul 18, 2024
@crazy-max crazy-max added this to the v0.16.1 milestone Jul 18, 2024
@crazy-max crazy-max marked this pull request as ready for review July 18, 2024 15:42
@tonistiigi tonistiigi merged commit 9b49cf3 into docker:master Jul 18, 2024
104 checks passed
@crazy-max crazy-max deleted the bake-fix-progress-panic branch July 18, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bake: panic in progress printer
2 participants