fix: invoke bundled Go toolchain explicitly

This commit is contained in:
Haitao Pan 2026-06-15 15:25:11 +08:00
parent e4ea9eb3d7
commit 02e76827e3

View File

@ -335,7 +335,7 @@ build_xworkmate_bridge_binary() {
-v "${WORKDIR}/repos/xworkmate-bridge:/src:ro" \
-v "${bin_dir}:/out" \
golang:1.25-bookworm \
bash -lc 'cd /src && go build -trimpath -o "/out/xworkmate-go-core.${GOARCH}" .'
bash -lc 'cd /src && /usr/local/go/bin/go build -trimpath -o "/out/xworkmate-go-core.${GOARCH}" .'
chmod +x "${bin_dir}/xworkmate-go-core.${ARCH}"
}