summaryrefslogtreecommitdiff
path: root/hack/lib
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2023-08-14 19:49:06 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2023-08-21 21:13:46 +0800
commit74533efd36725c7e6d2f6948e0ab87c4ad8bac67 (patch)
tree4514db23c51106eff0f68b05fb496724920214e9 /hack/lib
parentMerge pull request #4947 from Shelley-BaoYue/bump-go1.19-buildtool (diff)
downloadkubeedge-74533efd36725c7e6d2f6948e0ab87c4ad8bac67.tar.gz
update go version to 1.19
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'hack/lib')
-rwxr-xr-xhack/lib/install.sh4
1 files changed, 2 insertions, 2 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