Automator: update common-files@master in istio/istio.io@master (#8065)

This commit is contained in:
Istio Automation 2020-09-02 15:04:31 -07:00 committed by GitHub
parent 59ebec040b
commit 061328e7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
2cc19b6f07436b757115472d54be4668edd622e3
456ab8021b32c0bc25c638991448cfc54e06de39

View File

@ -78,14 +78,14 @@ if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[
echo "Warning: Detected that you are using an older version of the Go compiler. Istio requires ${minimum_go_version} or greater."
fi
OPTIMIZATION_FLAGS="-trimpath"
OPTIMIZATION_FLAGS=(-trimpath)
if [ "${DEBUG}" == "1" ]; then
OPTIMIZATION_FLAGS=""
OPTIMIZATION_FLAGS=()
fi
time GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} ${GOBINARY} build \
${V} "${GOBUILDFLAGS_ARRAY[@]}" ${GCFLAGS:+-gcflags "${GCFLAGS}"} \
-o "${OUT}" \
"${OPTIMIZATION_FLAGS}" \
"${OPTIMIZATION_FLAGS[@]}" \
-pkgdir="${GOPKG}/${BUILD_GOOS}_${BUILD_GOARCH}" \
-ldflags "${LDFLAGS} ${LD_EXTRAFLAGS}" "${@}"