Skip to content

Commit

Permalink
Upgrade to Go1.21 (#189)
Browse files Browse the repository at this point in the history
* Upgrade to Go1.21

* Updated Makefile

---------

Co-authored-by: Swopper050 <[email protected]>
  • Loading branch information
Swopper050 and Swopper050 authored Dec 22, 2023
1 parent fb70feb commit 0085de7
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 43 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +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
GO1.19=ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
BUILD_PARAMS=CGO_ENABLED=0 ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.21


define echotask
Expand Down Expand Up @@ -33,14 +32,14 @@ lint: ## Run various linters.
@golangci-lint run --timeout=1m --config .golangci.yml

test: ## Run tests using gotestsum.
@ ${GO1.19} gotestsum \
@ ${BUILD_PARAMS} gotestsum \
--format=dots -- \
-timeout=30000ms \
-covermode=set \
-coverprofile=.coverage.out ${TEST}

test_ci: ## Run tests using normal test runner for ci output.
@ ${GO1.19} go test \
@ ${BUILD_PARAMS} go test \
-coverprofile .coverage.out ${TEST} && go tool cover -func=.coverage.out

test_data: ## Creates test data from the ONNX test module.
Expand Down
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
module github.com/advancedclimatesystems/gonnx

go 1.19
go 1.21

require (
github.com/stretchr/testify v1.8.1
google.golang.org/protobuf v1.28.1
google.golang.org/protobuf v1.31.0
gorgonia.org/tensor v0.9.24
)

require (
github.com/apache/arrow/go/arrow v0.0.0-20210105145422-88aaea5262db // indirect
github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect
github.com/chewxy/hm v1.0.0 // indirect
github.com/chewxy/math32 v1.0.8 // indirect
github.com/chewxy/math32 v1.10.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.0 // indirect
github.com/google/flatbuffers v1.12.0 // 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-20220617031537-928513b29760 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gonum.org/v1/gonum v0.9.1 // indirect
go4.org/unsafe/assume-no-moving-gc v0.0.0-20231121144256-b99613f794b6 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
gonum.org/v1/gonum v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorgonia.org/vecf32 v0.9.0 // indirect
gorgonia.org/vecf64 v0.9.0 // indirect
Expand Down
Loading

0 comments on commit 0085de7

Please sign in to comment.