From ac622eee0ab0558789d94945df2245992ed1ed4d Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Mon, 31 Aug 2026 21:05:34 +0100 Subject: [PATCH] Set go 1.26 and toolchain go1.26.7 --- .github/workflows/ci.yml | 8 ++------ .github/workflows/update-licenses.yml | 2 +- go.mod | 4 +++- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33d2a4a..818cdf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,10 +11,6 @@ permissions: {} jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - go-version: ['1.25'] - steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -23,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: ${{ matrix.go-version }} + go-version-file: go.mod - name: Build run: go build -v ./... @@ -41,7 +37,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.25' + go-version-file: go.mod - name: golangci-lint uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9 diff --git a/.github/workflows/update-licenses.yml b/.github/workflows/update-licenses.yml index 165a88f..345f40b 100644 --- a/.github/workflows/update-licenses.yml +++ b/.github/workflows/update-licenses.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.22' + go-version-file: go.mod - name: Download latest license database run: | diff --git a/go.mod b/go.mod index 3c5e02e..036c4d2 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/git-pkgs/spdx -go 1.25.6 +go 1.26 + +toolchain go1.26.7 require github.com/github/go-spdx/v2 v2.7.0