Skip to content

Commit 90c18ff

Browse files
committed
fix(go_update): simplify PATH export and remove redundant list cmd
1 parent e880852 commit 90c18ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/go_update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
set -euo pipefail
66

7-
export PATH="$(go env GOPATH)/bin:$PATH"
7+
GOPATH_BIN="$(go env GOPATH)/bin"
8+
export PATH="$GOPATH_BIN:$PATH"
89
command -v govulncheck >/dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest
910

1011
MODULES=(
@@ -26,7 +27,6 @@ for MODULE in "${MODULES[@]}"; do
2627
go mod tidy
2728
go mod verify
2829
go vet ./...
29-
go list -m -u all
3030
go build ./...
3131
go test ./... > /dev/null
3232
govulncheck ./...

0 commit comments

Comments
 (0)