Skip to content

Commit 6aee3bf

Browse files
authored
Merge pull request #1696 from simonbaird/fix-goos-gooarch-for-konflux-builds
Fix Konflux build platform arch (main branch)
2 parents 9f89d87 + d62ea87 commit 6aee3bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ for os_arch in ${BUILDS}; do
3535
[[ "$GOOS" == "windows" ]] && DOT_EXE=".exe" || DOT_EXE=""
3636
BINFILE="ec_${GOOS}_${GOARCH}${DOT_EXE}"
3737
echo "Building ${BINFILE} for ${EC_FULL_VERSION}"
38-
go build \
38+
GOOS="${GOOS}" GOARCH="${GOARCH}" go build \
3939
-trimpath \
4040
--mod=readonly \
4141
-ldflags="-s -w -X github.com/enterprise-contract/ec-cli/internal/version.Version=${EC_FULL_VERSION}" \

0 commit comments

Comments
 (0)