diff options
| author | Shelley-BaoYue <baoyue2@huawei.com> | 2023-08-14 19:49:06 +0800 |
|---|---|---|
| committer | Shelley-BaoYue <baoyue2@huawei.com> | 2023-08-21 21:13:46 +0800 |
| commit | 74533efd36725c7e6d2f6948e0ab87c4ad8bac67 (patch) | |
| tree | 4514db23c51106eff0f68b05fb496724920214e9 /hack | |
| parent | Merge pull request #4947 from Shelley-BaoYue/bump-go1.19-buildtool (diff) | |
| download | kubeedge-74533efd36725c7e6d2f6948e0ab87c4ad8bac67.tar.gz | |
update go version to 1.19
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'hack')
| -rwxr-xr-x | hack/lib/install.sh | 4 | ||||
| -rwxr-xr-x | hack/update-vendor-licenses.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hack/lib/install.sh b/hack/lib/install.sh index 4dbe3cd1d..e06675cfc 100755 --- a/hack/lib/install.sh +++ b/hack/lib/install.sh @@ -52,7 +52,7 @@ function check_golangci-lint { GOPATH="${GOPATH:-$(go env GOPATH)}" echo "checking golangci-lint" export PATH=$PATH:$GOPATH/bin - expectedVersion="1.42.0" + expectedVersion="1.51.1" command -v golangci-lint >/dev/null 2>&1 if [[ $? -ne 0 ]]; then install_golangci-lint @@ -69,7 +69,7 @@ function check_golangci-lint { function install_golangci-lint { echo "installing golangci-lint ." - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.42.0 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.51.1 if [[ $? -ne 0 ]]; then echo "golangci-lint installed failed, exiting." exit 1 diff --git a/hack/update-vendor-licenses.sh b/hack/update-vendor-licenses.sh index 0119f4f74..74b1b9d18 100755 --- a/hack/update-vendor-licenses.sh +++ b/hack/update-vendor-licenses.sh @@ -142,7 +142,7 @@ process_content () { ############################################################################# export GO111MODULE=on -export GOFLAGS=-mod=mod +export GOFLAGS=-mod=readonly # Check bash version if (( BASH_VERSINFO[0] < 4 )); then |
