We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b79a958 + 8b18173 commit 9cfc6f6Copy full SHA for 9cfc6f6
hack/lib/golang.sh
@@ -7,7 +7,7 @@ set -o pipefail
7
function go::build_binary() {
8
local -r targets=($@)
9
10
- IFS="," read -ra platforms <<<"${BUILD_PLATFORMS:-}"
+ IFS="," read -ra platforms <<<"${BUILD_PLATFORMS-}"
11
if [[ ${#platforms[@]} -eq 0 ]]; then
12
read -ra platforms <<<$(go::host_platform)
13
fi
@@ -32,7 +32,7 @@ function go::build_binary_for_platform() {
32
33
set -x
34
GO111MODULE=on CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go build -v \
35
- -ldflags "${LDFLAGS:-}" \
+ -ldflags "${LDFLAGS-}" \
36
-o "_output/bin/${platform}/$target" \
37
"cmd/$target/main.go"
38
set +x
0 commit comments