Skip to content

DL3049: Fix behaviour with multistage builds#852

Merged
lorenzo merged 1 commit intohadolint:masterfrom
m-ildefons:dl3049-multistage
Jul 9, 2022
Merged

DL3049: Fix behaviour with multistage builds#852
lorenzo merged 1 commit intohadolint:masterfrom
m-ildefons:dl3049-multistage

Conversation

@m-ildefons
Copy link
Copy Markdown
Member

  • Fix DL3049 behaviour with multistage builds

In a multistage build, when a stage has an alias, it is reasonable to
assume that it will not be the last stage in the build process. Rather
there will be another stage inheriting or copying from that stage.
Therefore required labels don't necessarily need to be present in the
stage with the alias.

fixes: #758
Signed-off-by: Moritz Röhrich moritz.rohrich@suse.com

- Fix DL3049 behaviour with multistage builds

In a multistage build, when a stage has an alias, it is reasonable to
assume that it will not be the last stage in the build process. Rather
there will be another stage inheriting or copying from that stage.
Therefore required labels don't necessarily need to be present in the
stage with the alias.

fixes: hadolint#758
Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
@lorenzo lorenzo merged commit 10667dc into hadolint:master Jul 9, 2022
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.

Require label error is triggered when label isn't set on the first stage and set on the next for multistage Dockerfile

2 participants