From 37e946659e671900ca4322a9d9a077461dd435ac Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 23 Oct 2025 21:41:26 -0700 Subject: [PATCH 1/2] Add minimum supported Go version to CI On top of automatically testing against the two most recent releases (what Go upstream supports), also test explicitly against our lower bound. As noted in the previous change, don't have a `go.mod` to source this information from, so it's simply hard-coded in this file instead. (I chose 1.21 as that was the lowest version we were testing against previously, but it's possible that could go lower or actually reasonably needs to go higher.) Signed-off-by: Tianon Gravi --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d772d1b4..b3ddeb7a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,8 @@ jobs: strategy: matrix: - go: [oldstable, stable] + # our oldest (officially) supported version and the two upstream-supported versions + go: [1.21.x, oldstable, stable] steps: - name: checkout source code From b848a953443320553ad7af366cd17d3afbe48991 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 23 Oct 2025 22:22:57 -0700 Subject: [PATCH 2/2] Add explicit `GOTOOLCHAIN=local` in CI Signed-off-by: Tianon Gravi --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3ddeb7a9..72c144abd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,10 @@ jobs: # our oldest (officially) supported version and the two upstream-supported versions go: [1.21.x, oldstable, stable] + env: + # avoid downloading any alternate toolchains (https://go.dev/doc/toolchain) + GOTOOLCHAIN: local + steps: - name: checkout source code uses: actions/checkout@v4