File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
17
17
set -euo pipefail
18
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $( go env GOPATH) /bin latest
18
+ LINTER_VERSION=v2.0.2
19
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $( go env GOPATH) /bin ${LINTER_VERSION}
19
20
if [[ -z " $( command -v golangci-lint) " ]]; then
20
21
echo " Cannot find golangci-lint. Installing golangci-lint..."
21
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $( go env GOPATH) /bin v1.60.1
22
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $( go env GOPATH) /bin ${LINTER_VERSION}
22
23
export PATH=$PATH :$( go env GOPATH) /bin
23
24
fi
24
25
You can’t perform that action at this time.
0 commit comments