Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STAC-21251 Fix unforseen issue with release artifact paths. #2

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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