From 82f3e8642441ebef22701ba80cb39db3af23a6c3 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 19 Aug 2026 20:23:21 +0200 Subject: [PATCH] build: use Go 1.27, minimum version is Go 1.26 (#10864) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Purpose 🎉 Signed-off-by: Jakob Borg --- .github/workflows/build-infra-dockers.yaml | 2 +- .github/workflows/build-syncthing.yaml | 4 ++-- compat.yaml | 5 +++++ go.mod | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-infra-dockers.yaml b/.github/workflows/build-infra-dockers.yaml index a5b538d7a..e5db72951 100644 --- a/.github/workflows/build-infra-dockers.yaml +++ b/.github/workflows/build-infra-dockers.yaml @@ -7,7 +7,7 @@ on: - infra-* env: - GO_VERSION: "~1.26.0" + GO_VERSION: "~1.27.0" CGO_ENABLED: "0" BUILD_USER: docker BUILD_HOST: github.syncthing.net diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 286b7b339..fb44b6d2e 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -18,7 +18,7 @@ env: # The go version to use for builds. We set check-latest to true when # installing, so we get the latest patch version that matches the # expression. - GO_VERSION: "~1.26.0" + GO_VERSION: "~1.27.0" # Optimize compatibility on the slow architectures. GOMIPS: softfloat @@ -108,7 +108,7 @@ jobs: runner: ["windows-latest", "ubuntu-latest", "macos-latest"] # The oldest version in this list should match what we have in our go.mod. # Variables don't seem to be supported here, or we could have done something nice. - go: ["~1.25.0", "~1.26.0"] + go: ["~1.26.0", "~1.27.0"] runs-on: ${{ matrix.runner }} steps: - name: Set git to use LF diff --git a/compat.yaml b/compat.yaml index 9b2825885..096a21ce7 100644 --- a/compat.yaml +++ b/compat.yaml @@ -46,3 +46,8 @@ linux: "3.2" windows: "10.0" +- runtime: go1.27 + requirements: + darwin: "22" # macOS 13 (Ventura) + linux: "3.2" + windows: "10.0" diff --git a/go.mod b/go.mod index aadcd42ef..4d5db976c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/syncthing/syncthing -go 1.25.0 +go 1.26.0 require ( github.com/AudriusButkevicius/recli v0.0.7