Merge pull request #14485 from ahrtr/fix_build_tools

Build: remove the invalid quote character ' for flag -ldflags
This commit is contained in:
Sahdev Zala 2022-09-17 23:52:36 -04:00 committed by GitHub
commit 8650ae83f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ tools_build() {
# shellcheck disable=SC2086
run env GO_BUILD_FLAGS="${GO_BUILD_FLAGS}" CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} \
-installsuffix=cgo \
"-ldflags='${GO_LDFLAGS[*]}'" \
"-ldflags=${GO_LDFLAGS[*]}" \
-o="${out}/${tool}" "./${tool}" || return 2
done
tests_build "${@}"