Skip to content

Commit

Permalink
Merge pull request #2 from StackVista/STAC-21251
Browse files Browse the repository at this point in the history
STAC-21251 Fix unforseen issue with release artifact paths.
  • Loading branch information
LouisParkin authored May 14, 2024
2 parents cc54c57 + 3f0db55 commit ffe5145
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildscripts/cross-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ function _build() {
if [ "${CAN_BUILD_WITHOUT_DOCKER}" == "false" ]; then
docker run --name runner -d -v $PWD:$PWD --workdir $PWD golang:1.22 sleep infinity
docker exec -t runner git config --global --add safe.directory $PWD
docker exec -t runner go build -trimpath -tags kqueue --ldflags "${LDFLAGS}" -o ./bin/$os/$arch/minio 1>/dev/null
docker exec -t runner go build -trimpath -tags kqueue --ldflags "${LDFLAGS}" -o "./bin/minio_${os}_${arch}" 1>/dev/null
MUID=$(id -u)
MGID=$(id -g)
docker exec -t runner chown -R $MUID:$MGID ./bin
docker stop runner
docker rm runner
else
go build -trimpath -tags kqueue --ldflags "${LDFLAGS}" -o ./bin/$os/$arch/minio 1>/dev/null
go build -trimpath -tags kqueue --ldflags "${LDFLAGS}" -o "./bin/minio_${os}_${arch}" 1>/dev/null
fi

}
Expand All @@ -60,7 +60,7 @@ function _hash() {
# package=$(go list -f '{{.ImportPath}}')
printf -- "_hash --> %15s:%s\n" "${osarch}" "${package}"

sha256sum ./bin/$os/$arch/minio > ./bin/$os/$arch/minio.sha256sum
sha256sum "./bin/minio_${os}_${arch}" > "./bin/minio_${os}_${arch}".sha256sum
}

function _sign() {
Expand All @@ -72,8 +72,8 @@ function _sign() {
# package=$(go list -f '{{.ImportPath}}')
printf -- "_sign --> %15s:%s\n" "${osarch}" "${package}"

./minisign -Sm ./bin/$os/$arch/minio -W
cp minisign.hash ./bin/$os/$arch/minisign.hash
./minisign -Sm "./bin/minio_${os}_${arch}" -W
cp minisign.hash ./bin/minisign.hash
}

function main() {
Expand Down

0 comments on commit ffe5145

Please sign in to comment.