From 936ae5818779d0517ec04f26cfc6ad51d3946cb3 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Thu, 1 Aug 2024 02:32:20 -0400 Subject: [PATCH] chore: require go 1.20 Signed-off-by: Keith Zantow --- .github/workflows/build.yml | 2 +- Makefile | 3 ++- go.mod | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0dc3a9b..7b3e99f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.18' + go-version: '1.20' - name: Run tests run: make test - name: Send coverage report to coveralls diff --git a/Makefile b/Makefile index 4dd9d53..e105585 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,8 @@ format: .PHONY: unit unit: - go test -v -covermode=count -coverprofile=profile.cov ./... + go test -v -covermode=count -coverprofile=profile.cov.tmp ./... + cat profile.cov.tmp | grep -v v3_0/model.go > profile.cov # ignore generated model file .PHONY: fuzz fuzz: diff --git a/go.mod b/go.mod index e9da58f..c2a28da 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/spdx/tools-golang -go 1.18 +go 1.20 require ( github.com/anchore/go-struct-converter v0.0.0-20221118182256-c68fdcfa2092