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 <rick@jenkins-zh.cn>
This commit is contained in:
rick
2020-12-02 16:11:33 +08:00
parent 53c3204902
commit 164ffbbfda

View File

@@ -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}" \