ci: add go1.18 go version
MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -12,7 +12,7 @@ jobs:
matrix:
# Do not move this line; it is referred to by README.md.
# Versions of Go that are explicitly supported by Gonum.
- go-version: [1.17.x]
+ go-version: [1.18.x, 1.17.x]
platform: [ubuntu-latest, macos-latest]
force-goarch: ["", "386"]
tags:

MODIFY
.github/workflows/script.d/deps.sh
.github/workflows/script.d/deps.sh
set -ex
-# Avoid contaminating the go.mod/go.sum files.
-# TODO(kortschak): Remove when golang/go#30515 is resolved
-WORK=$(mktemp -d)
-pushd $WORK
-
# Required for format check.
-go get golang.org/x/tools/cmd/goimports
+go install golang.org/x/tools/cmd/goimports@latest
# Required for imports check.
-go get gonum.org/v1/tools/cmd/check-imports
+go install gonum.org/v1/tools/cmd/check-imports@latest
# Required for copyright header check.
-go get gonum.org/v1/tools/cmd/check-copyright
+go install gonum.org/v1/tools/cmd/check-copyright@latest
# Required for coverage.
-go get golang.org/x/tools/cmd/cover
+go install golang.org/x/tools/cmd/cover@latest
# Required for dot parser checks.
-go get github.com/goccmack/gocc@66c61e9
+go install github.com/goccmack/gocc@66c61e9
# Required for rdf parser checks.
-go get golang.org/x/tools/cmd/stringer
-
-# Clean up.
-# TODO(kortschak): Remove when golang/go#30515 is resolved.
-popd
-rm -rf $WORK
+go install golang.org/x/tools/cmd/stringer@latest

ci: add go1.18 go version