Repository navigation
Add: проверка версии Go (go.mod ↔ Dockerfile) в CI - #11
Merged
Merged
Conversation
- ci.yml: new step in the lint job compares the go directive in go.mod with ARG GO_IMAGE in the Dockerfile. An image older than the declared toolchain fails (GOTOOLCHAIN=local makes "go mod download" fail while building the image), a newer one only warns, so the pin can still be finished in a second PR. Dependabot bumps these two files in separate PRs (gomod and docker), and the drift already reached main once - CHANGELOG (cio, sqlbrc): Unreleased entries for the new check
…sections - cio: entries now live under "## [0.3.0] - Unreleased", comparison link goes from cio-v0.2.0 to HEAD - sqlbrc: entries now live under "## [0.4.0] - Unreleased", comparison link added from sqlbrc-v0.3.0 to HEAD The version, the date and the tag in the comparison link are substituted when the release is tagged
CONTRIBUTING.md still told to rename "## [Unreleased]" and to add an empty one back, but unreleased entries now live under "## [X.Y.Z] - Unreleased" in both changelogs: the release step replaces the marker with the date and starts the section of the next version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Что сделано
Защита от рассинхрона версии Go между
go.modи образом сборки плюс приведение журналовизменений к версиям будущих релизов.
.github/workflows/ci.yml, joblint: новый шаг «Версия Go (go.mod ↔ Dockerfile)» сравниваетдирективу
goизgo.modсARG GO_IMAGEизDockerfile. Образ старее объявленной версиироняет прогон и называет оба файла: в образе сборки выключен автоподбор тулчейна
(
GOTOOLCHAIN=local), поэтому несоответствие всплывало невнятной ошибкойgo mod downloadприсборке образа. Образ новее
go.modдаёт предупреждение — пин можно доделать вторым PR.Dependabot обновляет эти два файла разными PR (экосистемы gomod и docker), и рассинхрон уже
доходил до
main.Container image optimizer/CHANGELOG.md,SQL backup restore clone/CHANGELOG.md: незарелиженныезаписи перенесены в секции будущих релизов —
## [0.3.0] - Unreleasedи## [0.4.0] - Unreleased,ссылки сравнения идут от последних тегов до
HEAD.CONTRIBUTING.md: чеклист релиза и порядок заведения нового инструмента согласованы с новойсхемой секций (в заголовке — версия, дата подставляется при выпуске).
Тип изменения
Как проверено
gofmt -l cmd internal— пустоgo vet ./...go test ./... -count=1golangci-lint run ./...(или.work/lint-docker.ps1)cio—.work/smoke-cio.ps1;sqlbrc—.work/smoke-container.ps1или.work/smoke-serve.ps1README.mdиCHANGELOG.mdзатронутого инструмента (README не менялся: флаги CLI и формат JSON-отчёта не затронуты)SECURITY.md,README.md(матрицы workflow не менялись: шаг добавлен в существующий joblint;SECURITY.mdиREADME.mdне затрагиваются)CHANGELOG.mdсовпадает с тегом<инструмент>-vX.Y.ZДополнительно проверены сценарии самого шага: синхронные версии, образ старее
go.mod, образновее
go.mod, мусорный тег образа; оба инструмента прогнаны локально на тулчейне изgo.mod(
go1.26.8), workflows прошлиvalidate-workflows.py,actionlintиzizmorбез находок.Влияние и риски
изменений и порядок релиза.
(
## [0.3.0] - Unreleased), дата и ссылка на тег подставляются при выпуске.golang:latest) — это ожидаемо,версия тулчейна должна быть закреплена явно.