Split Dockerfile: pre-built golangci-lint stage for faster CI #20
Посилання в новій задачі
Заблокувати користувача
Видалити гілку "%!s()"
Видалення гілки є незворотним. Хоча видалена гілка може продовжувати існувати ще деякий час до того, як її буде видалено остаточно, у більшості випадків це НЕМОЖЛИВО скасувати. Продовжити?
Goal
Split the Dockerfile into a dedicated lint stage using the pre-built
golangci/golangci-lintimage, so lint and formatting failures surface much faster without downloading golangci-lint on every build.Key details
golangci/golangci-lintimage runsmake fmt-check+make lintmake test+make buildCOPY --from=lint /src/go.sum /dev/nullcreates BuildKit stage dependency (without this, lint is silently skipped)Tracked from sdlc-manager#6.
Closing: duplicate of #18.