From e033e375ea8dc4125a179be892da6d216d0c0b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20B=C3=A4ck?= Date: Mon, 9 Oct 2023 09:21:00 +0200 Subject: [PATCH] go.mod: Bump required Go version to 1.18 Commit 564b6fc introduced calls to strings.Cut, added in Go 1.18. The fuzz testing also requires 1.18 but that will at least not affect users of the module. Also updating the CI configuration to actually test the Go version we claim to support. --- .github/workflows/test.yaml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6c7e5cb..0cb0732 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.19.x, 1.20.x] + go-version: [1.18.x, 1.19.x, 1.20.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: diff --git a/go.mod b/go.mod index 3c8d0ad..3b35dee 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/package-url/packageurl-go -go 1.17 +go 1.18