From ed5cdd38a40e0e121b8bc1c432bbb57ca584f798 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 20 Jun 2026 00:23:59 +0900 Subject: cmd/dist: build hsu separately This program must be built with cgo disabled, and was missed when migrating build script. Signed-off-by: Ophestra --- internal/rosa/package/hakurei/package.az | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/rosa/package/hakurei/package.az b/internal/rosa/package/hakurei/package.az index 2f33d200..b31ea6c4 100644 --- a/internal/rosa/package/hakurei/package.az +++ b/internal/rosa/package/hakurei/package.az @@ -48,8 +48,13 @@ go build -trimpath -tags=rosa -o /work/system/libexec/hakurei -ldflags="-s -w -X hakurei.app/internal/info.buildVersion=$(cat cmd/dist/VERSION) -X hakurei.app/internal/info.hakureiPath=/system/bin/hakurei -X hakurei.app/internal/info.hsuPath=/system/bin/hsu +" ./cmd/hakurei ./cmd/sharefs + +echo "Building hsu for $(go env GOOS)/$(go env GOARCH)." +CGO_ENABLED=0 go build -trimpath -tags=rosa -o /work/system/libexec/hakurei -ldflags="-s -w + -buildid= -X main.hakureiPath=/system/bin/hakurei -" ./... +" ./cmd/hsu echo`; check = ` echo '##### Testing hakurei.' -- cgit v1.3.1