From 6eccbcc604ce4f604474882119a4316c84c93eca Mon Sep 17 00:00:00 2001 From: wisse Date: Sun, 22 Dec 2024 10:38:04 +0000 Subject: [PATCH] Upgrade to go 1.23 [#203](https://github.com/AdvancedClimateSystems/gonnx/issues/203) --- .github/workflows/go.yml | 8 ++++---- .golangci.yml | 3 +-- Makefile | 4 ++-- go.mod | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b6497d..ab7b1a6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21 + go-version: 1.23 - name: Install linter run: make install_lint @@ -34,7 +34,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21 + go-version: 1.23 - name: Install dependencies run: make install @@ -56,7 +56,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21 + go-version: 1.23 - name: Build amd64 run: make build_amd64 @@ -69,7 +69,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.21 + go-version: 1.23 - name: Build arm64 run: make build_arm64 diff --git a/.golangci.yml b/.golangci.yml index b8d0e05..dd9eb31 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,7 +10,6 @@ linters: - errchkjson - errname - errorlint - - execinquery - exhaustive - exportloopref - forcetypeassert @@ -19,7 +18,7 @@ linters: - gocritic - godot - godox - - goerr113 + - err113 - goprintffuncname - govet - ineffassign diff --git a/Makefile b/Makefile index 2a6d69a..5bad34e 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION=$(shell git describe --always --tags --dirty) LDFLAGS=-ldflags "-s -w -X main.Version=${VERSION}" TEST=$(shell go list ./... | grep -v /onnx/) -BUILD_PARAMS=CGO_ENABLED=0 ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.21 +BUILD_PARAMS=CGO_ENABLED=0 define echotask @@ -33,7 +33,7 @@ lint: ## Run various linters. test: ## Run tests using gotestsum. @ ${BUILD_PARAMS} gotestsum \ - --format=dots -- \ + --format=dots-v2 -- \ -timeout=30000ms \ -covermode=set \ -coverprofile=.coverage.out ${TEST} diff --git a/go.mod b/go.mod index ebd4897..a2cb1a8 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,9 @@ module github.com/advancedclimatesystems/gonnx -go 1.21 +go 1.23 require ( + github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.1 google.golang.org/protobuf v1.31.0 gorgonia.org/tensor v0.9.24 @@ -16,7 +17,6 @@ require ( github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/xtgo/set v1.0.0 // indirect go4.org/unsafe/assume-no-moving-gc v0.0.0-20231121144256-b99613f794b6 // indirect