Skip to content

Commit d62ea87

Browse files
committed
Fix Konflux build platform arch
The GOOS and GOARCH env vars need to be set explicitly, otherwise we just build the linux x86 binary over and over. Looks like this regression was introduced in commit b8db99c. I think restoring the export on those two vars would also have worked. Ref: https://issues.redhat.com/browse/SECURESIGN-1054
1 parent 9f89d87 commit d62ea87

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)