script/lint exports an image it never uses, leaving a dangling image per run #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Found during the review of
#47, non-blocking there.
script/lintrunsdocker build -f Dockerfile.lint .with neither-tnor--output=type=cacheonly. The lint result is the build's exitstatus; the image itself is never used. Two costs, measured on this
host:
that
script/checkand the pre-commit hook both invoke.that accumulates indefinitely.
Definition of done
script/lintstops materialising an image it does not use, e.g.--output=type=cacheonly, or tagging so each run replaces the lastrather than orphaning it. State which and why.
must not reintroduce a cached sub-second success. Prove it the way
the PR did: two consecutive runs on an untouched tree with the
linter executing in both under
BUILDKIT_PROGRESS=plain, plus thecontrol that holding the cache-buster constant brings the false green
back.
script/lintwith that specific finding.is shared.