From 835f03f53c7185a1eee559c9bd3c0fc2c2c31399 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 19 Apr 2026 20:13:49 +0100 Subject: [PATCH] fix(release): drop broken CGO_ENABLED=0 static build target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit smacker/go-tree-sitter requires CGO: the Node type is defined only in bindings.go behind //go:build cgo, while iter.go references it without a build tag. With CGO_ENABLED=0 every iter.go:N: undefined: Node fails the build. The mcp-filepuff-static target was added in 9205b2b after the last successful release (v0.2.3) and has never produced an artifact — every release since has been red. Dropping it restores the working release shape: darwin_arm64 + linux_amd64 + windows_amd64 CGO binaries, same as v0.2.3 shipped. --- .goreleaser.yaml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e884007..9c08aa0 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -38,25 +38,6 @@ builds: - goos: windows goarch: arm64 - - id: mcp-filepuff-static - main: ./cmd/mcp-filepuff - binary: mcp-filepuff - env: - - CGO_ENABLED=0 - flags: - - -trimpath - ldflags: - - -s -w - - -X main.version={{.Version}} - - -X main.commit={{.Commit}} - - -X main.date={{.Date}} - - -extldflags=-static - goos: - - linux - goarch: - - amd64 - - arm64 - archives: - id: default formats: