Skip to content

fix(build, buildah, staged): fix panic in run instruction #6733

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

iapershin
Copy link
Collaborator

Due to we don't set logger in run options a panic occurs when running this code
https://github.com/werf/3p-buildah/blob/5b80b7b735de074279ceabad77697d1fe54fafab/run_linux.go#L350-L354
It can't take a global logger since it uses pointer to logger from options struct, so we need to set it in the run options.

Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
@iapershin iapershin self-assigned this Mar 26, 2025
@alexey-igrychev alexey-igrychev changed the title fix(build,buildah): fix panic in run instruction fix(build, buildah, staged): fix panic in run instructionhttps://github.com/werf/werf/pull/6733/files#submit-review Mar 26, 2025
@alexey-igrychev alexey-igrychev changed the title fix(build, buildah, staged): fix panic in run instructionhttps://github.com/werf/werf/pull/6733/files#submit-review fix(build, buildah, staged): fix panic in run instruction Mar 26, 2025
@alexey-igrychev alexey-igrychev merged commit 579de54 into main Mar 26, 2025
8 checks passed
@alexey-igrychev alexey-igrychev deleted the fix/build/fix-buildah-run-panic branch March 26, 2025 09:42
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