Use the host target in consumer delivery workflows

This commit is contained in:
2026-11-04 00:49:10 +00:00
parent a8ffa89011
commit 8e897d7b3e
5 changed files with 24 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ steps:
releasekit_module=go.maximumdirect.net/releasekit
(
cd "$${module_path}"
releasekit_host_os=$(go env GOHOSTOS) || exit $?
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
export GOOS="$${releasekit_host_os}" GOARCH="$${releasekit_host_arch}"
go list -mod=mod -modfile="$${bootstrap_dir}/releasekit.mod" -m "$${releasekit_module}"
go mod edit -modfile="$${bootstrap_dir}/releasekit.mod" -tool="$${releasekit_module}/cmd/releasekit"
go list -mod=mod -modfile="$${bootstrap_dir}/releasekit.mod" -deps "$${releasekit_module}/cmd/releasekit" > /dev/null