From 5ef318ef77f0bed4d6a7a9f32d045e998bab426a Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 16 Oct 2026 07:55:41 +0200 Subject: [PATCH] Update go to 1.26 Dependabot PRs that update golang.org/x modules fail on CI. These modules now require go 1.26, but CI runs 1.25. The golang.org/x modules require the oldest Go release that is still supported, and since Go 1.27 came out, this is 1.26. Stop at 1.26 rather than going to 1.27. The go version in go.mod is the minimum for everyone who builds lazygit from source, and Go 1.27 is only two months old. Also, Go 1.27 requires macOS 13, so release binaries built with it would no longer run on macOS 12. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- .golangci.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b1b287f7..df8ac7d84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: Continuous Integration env: - GO_VERSION: 1.25.x + GO_VERSION: 1.26.x on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7755cc2b..85426e6d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -162,7 +162,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v7 with: - go-version: 1.25.x + go-version: 1.26.x - name: Run goreleaser uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 diff --git a/.golangci.yml b/.golangci.yml index e6a2f37ab..79db5dbd7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ version: "2" run: - go: "1.25" + go: "1.26" issues: max-issues-per-linter: 0 max-same-issues: 0 diff --git a/Dockerfile b/Dockerfile index 8a18ad8d3..9cc163dbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # docker build -t lazygit . # docker run -it lazygit:latest /bin/sh -FROM golang:1.25 as build +FROM golang:1.26 as build WORKDIR /go/src/github.com/jesseduffield/lazygit/ COPY go.mod go.sum ./ RUN go mod download diff --git a/go.mod b/go.mod index 68aa39cea..35e04cd77 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/jesseduffield/lazygit -go 1.25.0 +go 1.26.0 // This is necessary to ignore test files when executing gofumpt. ignore ./test