@@ -49,31 +49,30 @@ echo "Building targets for ${ARCH}, generated targets in ${TARGETS_DIR} director
4949
5050echo " Building ${PKG} /cmd/nginx"
5151
52- pushd /go/src/k8s.io/ingress-nginx
53- git config --add safe.directory /go/src/k8s.io/ingress-nginx
54- popd
55-
5652${GO_BUILD_CMD} \
5753 -trimpath -ldflags=" -buildid= -w -s \
58- -X ${PKG} /version.RELEASE=${TAG} \
59- -X ${PKG} /version.COMMIT=${COMMIT_SHA} \
60- -X ${PKG} /version.REPO=${REPO_INFO} " \
54+ -X ${PKG} /version.RELEASE=${TAG} \
55+ -X ${PKG} /version.COMMIT=${COMMIT_SHA} \
56+ -X ${PKG} /version.REPO=${REPO_INFO} " \
57+ -buildvcs=false \
6158 -o " ${TARGETS_DIR} /nginx-ingress-controller" " ${PKG} /cmd/nginx"
6259
6360echo " Building ${PKG} /cmd/dbg"
6461
6562${GO_BUILD_CMD} \
6663 -trimpath -ldflags=" -buildid= -w -s \
67- -X ${PKG} /version.RELEASE=${TAG} \
68- -X ${PKG} /version.COMMIT=${COMMIT_SHA} \
69- -X ${PKG} /version.REPO=${REPO_INFO} " \
64+ -X ${PKG} /version.RELEASE=${TAG} \
65+ -X ${PKG} /version.COMMIT=${COMMIT_SHA} \
66+ -X ${PKG} /version.REPO=${REPO_INFO} " \
67+ -buildvcs=false \
7068 -o " ${TARGETS_DIR} /dbg" " ${PKG} /cmd/dbg"
7169
7270echo " Building ${PKG} /cmd/waitshutdown"
7371
7472${GO_BUILD_CMD} \
7573 -trimpath -ldflags=" -buildid= -w -s \
76- -X ${PKG} /version.RELEASE=${TAG} \
77- -X ${PKG} /version.COMMIT=${COMMIT_SHA} \
78- -X ${PKG} /version.REPO=${REPO_INFO} " \
74+ -X ${PKG} /version.RELEASE=${TAG} \
75+ -X ${PKG} /version.COMMIT=${COMMIT_SHA} \
76+ -X ${PKG} /version.REPO=${REPO_INFO} " \
77+ -buildvcs=false \
7978 -o " ${TARGETS_DIR} /wait-shutdown" " ${PKG} /cmd/waitshutdown"
0 commit comments