fix(hadolint): ignore DL3067 for the tonistiigi/xx filesystem copy #18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/hadolint-dl3067"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mainis currently failing theHadolintcheck, which blocks every PR rebased onto it.Cause
#12 (
chore(mise): Update mise tools) automerged hadolint 2.14.0 → 2.15.1. Version 2.15.1 adds a new rule DL3067 — "Do not copy an entire filesystem from another stage" — that 2.14.0 did not have. It flagsapps/forgejo-runner/Dockerfile:6:That is the documented way to pull in the tonistiigi/xx cross-compilation helpers, so the whole-filesystem copy is deliberate. DL3067 is a false positive here, not a real defect — suppressed rather than reworked.
Blast radius
This is why #13 and #14 both went red on
Hadolintimmediately after being rebased onto current main. Both were green on their pre-rebase commits, and neither change has anything to do with Dockerfiles. Any future PR would hit the same wall.Approach
Added to the existing
.hadolint.yamlignored:list with an explanatory comment, matching the convention already used there for DL3018 / DL4006 / DL3059, rather than an inline# hadolint ignore=on the line.Verification
Ran the exact command the CI task uses, against hadolint 2.15.1 locally — clean, exit 0:
https://claude.ai/code/session_01SCKiwB9nK2t1DHtoHiUUzE