Skip to content

COPY/ADD --link add explicit forms#109

Merged
m-ildefons merged 2 commits into
hadolint:masterfrom
m-ildefons:wip/link-explicit
Jun 24, 2026
Merged

COPY/ADD --link add explicit forms#109
m-ildefons merged 2 commits into
hadolint:masterfrom
m-ildefons:wip/link-explicit

Conversation

@m-ildefons

Copy link
Copy Markdown
Member

Add explicit forms of --link flag for COPY and ADD instructions This allows the use of e.g. COPY --link=true, which is equivalent to COPY --link. It also allows the use of COPY --link=false.

Add explicit forms of --link flag for COPY and ADD instructions
This allows the use of e.g. `COPY --link=true`, which is equivalent to
`COPY --link`. It also allows the use of `COPY --link=false`.

Signed-off-by: Moritz Röhrich <moritz@ildefons.de>
@m-ildefons m-ildefons self-assigned this Jun 24, 2026
Implement the pretty printer for the COPY/ADD flags --parents --link
--unpack --keep-git-dir as instances of Pretty.
This makes the implementation more canonically and lets it nest easier.

Signed-off-by: Moritz Röhrich <moritz@ildefons.de>
@m-ildefons m-ildefons merged commit f999974 into hadolint:master Jun 24, 2026
2 checks passed
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.

1 participant