File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -Eeou pipefail
3
3
4
- export GOPATH=${GOPATH:- ${workdir} }
5
-
6
4
# Set required version
7
5
required_version=" v1.61.0"
8
6
17
15
echo " Go Version: $( go version) "
18
16
19
17
echo " Running golangci-lint..."
20
- if PATH=${ GOPATH} /bin:${PATH} golangci-lint run --fix; then
18
+ if PATH=$( go env GOPATH) /bin:${PATH} golangci-lint run --fix; then
21
19
echo " No issues found by golangci-lint."
22
20
else
23
21
echo " golangci-lint found issues or made changes."
24
22
exit 1
25
23
fi
26
-
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ process_licenses() {
20
20
return 1
21
21
fi
22
22
23
- PATH=${ GOPATH} /bin:${PATH} GOOS=linux GOARCH=amd64 GOFLAGS=" -mod=mod" go-licenses report . --template " ${SCRIPTS_DIR} /update_licenses.tpl" > licenses_full.csv 2> licenses_stderr || true
23
+ PATH=$( go env GOPATH) /bin:${PATH} GOOS=linux GOARCH=amd64 GOFLAGS=" -mod=mod" go-licenses report . --template " ${SCRIPTS_DIR} /update_licenses.tpl" > licenses_full.csv 2> licenses_stderr || true
24
24
25
25
# Filter and sort the licenses report
26
26
grep -v 10gen licenses_full.csv | grep -v " github.com/mongodb" | grep -v " ^golang.org" | sort > licenses.csv || true
You can’t perform that action at this time.
0 commit comments