feat: ship hadolint and knip natively in the image #4
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/2-ship-hadolint-knip"
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?
Summary
hadolintnow comes fromCOPY --from=hadolint/hadolint:v2.14.0-alpine /bin/hadolint /usr/local/bin/hadolintrather than a curl of a GitHub release in each consumer's checks workflow. Pinning by image tag puts the version under the shared Renovate preset's dockerfile manager (the docker datasource is already exempt from the age gate), and drops the hardcodedLinux-x86_64.knipadded to the existing global npm install, pinned to 6.29.0 alongsideprettier@3.8.1.descriptionlabel, README contents (including its now-inaccurate "single-stage" claim), and theAGENTS.mdimage-design constraints. That section also picks up themakerefusal rationale from #1, which was decided there but never actually written into the repo.Not in this PR
.forgejo/workflows/checks.ymlstill installs hadolint by curl. It pinsgeneral-ci:0.4.0, which has no hadolint, so collapsing the step tohadolint Dockerfilewould fail on this very PR. It can only be simplified after this publishes and the pin moves.HADOLINTvariable is a second copy of the version. Renovate reads the Dockerfile line but not the Makefile, so the two can drift; the coupling is noted inAGENTS.mdinstead of restructuring the local gate.prettierandknipare pins inside aRUN, which no Renovate manager reads — fixing that needs acustomManagersentry in the shared preset, which is a fleet-wide change.Test plan
make buildsucceedsdocker run --rm general-ci:local hadolint --version→Haskell Dockerfile Linter 2.14.0docker run --rm general-ci:local knip --version→6.29.0appuser(whoami→appuser)hadolint Dockerfilerun from inside the image against a mounted repo exits clean and honours.hadolint.yamlmake pre-commitgreen — hadolint passes, prettier reports every file unchangedCloses #2
Commitizen bump preview
Merging this PR will produce the following bump: