From b347c14bd19a29e453d53da96a522125d5b6b238 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 9 Aug 2023 16:04:13 +0200 Subject: [PATCH] build: Use correct range specification for Go version The old `^1.20.7` means `1.x.y, >= 1.20.7` which allows 1.21.0, which was not intended. The new `~1.20.7` means `1.20.x, >= 1.20.7`, which is safer. --- .github/workflows/build-syncthing.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 0659d5cc3..35ed2827c 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -12,7 +12,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.20.7" + GO_VERSION: "~1.20.7" # Optimize compatibility on the slow archictures. GO386: softfloat