From 99341394c5fbc2bfa13f38da53804a9c7c72a825 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 8 Oct 2024 11:05:38 +0200 Subject: [PATCH] Test with Go 1.21 and later Something ends up requiring the slices package, which was added in Go 1.21. Signed-off-by: Stephen Kitt --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0793ecb..9a12a83 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,7 +9,7 @@ jobs: build: strategy: matrix: - go-versions: [1.16.x, 1.17.x, 1.18.x, 1.19.x] + go-versions: [1.21.x, 1.22.x, 1.23.x] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -18,7 +18,7 @@ jobs: with: go-version: ${{ matrix.go-versions }} - name: Install - run: GO111MODULE=off go get golang.org/x/lint/golint + run: go install golang.org/x/lint/golint@latest - name: Run gofmt run: diff -u <(echo -n) <(gofmt -d *.go) - name: Run golint