From 164ffbbfdadaa8dbd99c32434224882b2ffee865 Mon Sep 17 00:00:00 2001 From: rick Date: Wed, 2 Dec 2020 16:11:33 +0800 Subject: [PATCH] Discard these changes base the discussion on github discussion thread is here https://github.com/kubesphere/kubesphere/pull/3163#discussion_r533959311 Signed-off-by: rick --- hack/gobuild.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hack/gobuild.sh b/hack/gobuild.sh index 053074090..b082ab498 100755 --- a/hack/gobuild.sh +++ b/hack/gobuild.sh @@ -41,12 +41,6 @@ BUILD_GOARCH=${GOARCH:-$(go env GOARCH)} GOBINARY=${GOBINARY:-go} LDFLAGS=$(kube::version::ldflags) -# we need to build a particular binary instead of default one in some cases -KS_BUILD_GOOS=${KS_BUILD_GOOS:-""} -if [[ "${KS_BUILD_GOOS}" != "" ]]; then - BUILD_GOOS=${KS_BUILD_GOOS} -fi - # forgoing -i (incremental build) because it will be deprecated by tool chain. time GOOS=${BUILD_GOOS} CGO_ENABLED=0 GOARCH=${BUILD_GOARCH} ${GOBINARY} build \ -ldflags="${LDFLAGS}" \