From e30ea89990602a8983da1bf3f09a73cf9b648827 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Wed, 12 Nov 2025 23:52:08 +1000 Subject: [PATCH] chore: enable CGO to be able to build fsevent required by updated compose on macOS --- .goreleaser.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 40da917d..6d4c35c6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,7 +16,8 @@ builds: main: ./cmd/uncloud binary: uncloud env: - - CGO_ENABLED=0 + # Use CGO to be able to build fsevent required by compose on macOS. + - CGO_ENABLED={{ if eq .Os "darwin" }}1{{ else }}0{{ end }} goos: - darwin - linux