git » kxd » commit 5227cd4

Minimum supported Go version: 1.21

author Alberto Bertogli
2024-08-15 09:34:02 UTC
committer Alberto Bertogli
2024-09-08 09:20:45 UTC
parent 2e905432a71462daa90336320b9b5a76e4eba0ba

Minimum supported Go version: 1.21

Update the minimum supported Go version to 1.21 (which was released 1y
ago), and update the GitHub Actions config accordingly.

While we're not currently using any of the specific features right now,
the current minimum version of Go 1.15 is a bit misleading since it's
quite old and not really being tested against in practice.

.github/workflows/tests.yaml +8 -4
README.md +1 -1
go.mod +1 -1

diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index c1d0f6a..7bd7b26 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -13,11 +13,15 @@ jobs:
   tests:
     runs-on: ubuntu-latest
     timeout-minutes: 5
+    strategy:
+      matrix:
+        # Test against stable, and the oldest supported version.
+        go: [ 'stable', '1.21.x' ]
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v4
+      - uses: actions/setup-go@v5
         with:
-          go-version: ">=1.20"
-
+          go-version: ${{ matrix.go }}
+          check-latest: true
       - name: test
         run: make test
diff --git a/README.md b/README.md
index 5b2f040..b3c1ea8 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ assumption that the server's host is secure and trusted.
 
 There are no runtime dependencies for the kxd and kxc binaries.
 
-Building requires Go 1.15.
+Building requires Go 1.21.
 
 The configuration helper scripts (`create-kxd-config`, `kxc-add-key`, etc.)
 depend on: `bash` and core utilities (`mkdir`, `dd`, etc.).
diff --git a/go.mod b/go.mod
index fcdfd19..2492972 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
 module blitiri.com.ar/go/kxd
 
-go 1.15
+go 1.20