Use the host target in the multi-module launcher

This commit is contained in:
2026-11-04 00:47:38 +00:00
parent bf07bed2ae
commit a8ffa89011
3 changed files with 33 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ releasekit_module=go.maximumdirect.net/releasekit
cd "$module_path"
export GOWORK=off
export GOTOOLCHAIN=local
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