Skip to content

chore(ci): read Go version from go.mod toolchain directive#786

Open
mnencia wants to merge 1 commit intomainfrom
dev/go-version-from-gomod
Open

chore(ci): read Go version from go.mod toolchain directive#786
mnencia wants to merge 1 commit intomainfrom
dev/go-version-from-gomod

Conversation

@mnencia
Copy link
Member

@mnencia mnencia commented Mar 6, 2026

Replace hardcoded Go version across the Taskfile and Dockerfiles with a single GO_VERSION variable extracted from go.mod's toolchain directive. This makes go.mod the single source of truth for the Go version, removing the need to keep 3 Taskfile tasks and 2 Dockerfiles in sync via Renovate's custom regex manager.

Mirrors cloudnative-pg/cloudnative-pg@0ad0436 for this repository.

@mnencia mnencia requested a review from a team as a code owner March 6, 2026 11:19
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. dependencies Pull requests that update a dependency file labels Mar 6, 2026
@mnencia mnencia force-pushed the dev/go-version-from-gomod branch 2 times, most recently from 7dd962d to f3a4e16 Compare March 6, 2026 11:30
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 6, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 6, 2026
@sxd sxd force-pushed the dev/go-version-from-gomod branch from f3a4e16 to 412772e Compare March 6, 2026 12:34
Replace hardcoded Go version across the Taskfile and Dockerfiles with a
single GO_VERSION variable extracted from go.mod's toolchain directive.
This makes go.mod the single source of truth for the Go version,
removing the need to keep 3 Taskfile tasks and 2 Dockerfiles in sync
via Renovate's custom regex manager.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@mnencia mnencia force-pushed the dev/go-version-from-gomod branch from 412772e to e11f2a8 Compare March 6, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants