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

dockerfile: avoid frontend panic when no stages defined #5150

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

tonistiigi
Copy link
Member

fixes #5147

Although #5147 does not list Dockerfile, this is the only case I see where this was possible. Build without stages is still error, but don't let the frontend panic.

@tonistiigi tonistiigi added this to the v0.15.0 milestone Jul 10, 2024
@@ -5479,6 +5480,40 @@ RUN echo $(hostname) | grep foo
}
}

func testEmptyStages(t *testing.T, sb integration.Sandbox) {
integration.SkipOnPlatform(t, "windows")
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just a default atm. There is a separate task to enable integration tests one-by-one in wcow. Not specific to the feature.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi merged commit 62ba6fe into moby:master Jul 10, 2024
75 checks passed
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.

Systematic panic: runtime error: index out of range [-1] while building container
3 participants