From 2b33be080653dddddb1ea63cf33f4d243e04ec0f Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Sat, 7 Mar 2026 11:06:58 +0100 Subject: [PATCH 1/2] chore(deps): update Go to 1.26.1 Update .go-version to 1.26.1 and go.mod directive to go 1.26. Co-Authored-By: Claude Opus 4.6 --- .go-version | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.go-version b/.go-version index f1968aa..dd43a14 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.25.7 +1.26.1 diff --git a/go.mod b/go.mod index 82e3b24..aeae5a6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/patrickhoefler/dockerfilegraph -go 1.25.7 +go 1.26 require ( github.com/aquilax/truncate v1.0.1 From 820bd86ed85185a13e66f6ae660d6cb6bec81769 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Sat, 7 Mar 2026 21:34:00 +0100 Subject: [PATCH 2/2] chore: make .go-version the source of truth for Go toolchain Pin CI to the exact Go patch version via .go-version instead of floating via the go directive in go.mod. Add toolchain directive to go.mod to keep it consistent. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/lint-and-test.yml | 6 +++--- .github/workflows/release.yml | 2 +- go.mod | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 5e9191c..fb4c21e 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: - go-version-file: 'go.mod' + go-version-file: '.go-version' - name: Install mise and all workspace tools uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 @@ -56,7 +56,7 @@ jobs: - name: Set up Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: - go-version-file: 'go.mod' + go-version-file: '.go-version' - name: Install mise and all workspace tools uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3 @@ -101,7 +101,7 @@ jobs: - name: Set up Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: - go-version-file: 'go.mod' + go-version-file: '.go-version' - name: Build binaries and Docker image with GoReleaser uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5133fc8..8ed7357 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: - name: Set up Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: - go-version-file: 'go.mod' + go-version-file: '.go-version' - name: Login to GitHub Container Registry uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 diff --git a/go.mod b/go.mod index aeae5a6..4eee013 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/patrickhoefler/dockerfilegraph go 1.26 +toolchain go1.26.1 + require ( github.com/aquilax/truncate v1.0.1 github.com/awalterschulze/gographviz v2.0.3+incompatible