From 3be03aef7b9c4abc38b083de557f20e917c005b1 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 18 Jan 2026 19:08:10 +0000 Subject: [PATCH] build(goreleaser): enable CGO and remove Docker builds - [x] Enable CGO_ENABLED=1 for builds - [x] Add platform ignore rules for unsupported architectures - [x] Remove Docker build configuration (dockers_v2) - [x] Remove Docker signing configuration - [x] Add platform compatibility check in install script --- .goreleaser.yaml | 35 +++++++++-------------------------- scripts/install.sh | 7 +++++++ 2 files changed, 16 insertions(+), 26 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f757287..6e41e8f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -15,7 +15,7 @@ builds: main: ./cmd/mcp-filepuff binary: mcp-filepuff env: - - CGO_ENABLED=0 + - CGO_ENABLED=1 flags: - -trimpath ldflags: @@ -30,6 +30,13 @@ builds: goarch: - amd64 - arm64 + ignore: + - goos: darwin + goarch: amd64 + - goos: linux + goarch: arm64 + - goos: windows + goarch: arm64 archives: - id: default @@ -82,23 +89,6 @@ release: curl -sSL https://raw.githubusercontent.com/lukaszraczylo/filepuff-mcp/main/scripts/install.sh | bash ``` -dockers_v2: - - images: - - "ghcr.io/lukaszraczylo/filepuff-mcp" - tags: - - "{{ .Version }}" - - "latest" - - "v1" - platforms: - - linux/amd64 - - linux/arm64 - dockerfile: Dockerfile.goreleaser - labels: - "org.opencontainers.image.created": "{{.Date}}" - "org.opencontainers.image.title": "{{.ProjectName}}" - "org.opencontainers.image.revision": "{{.FullCommit}}" - "org.opencontainers.image.version": "{{.Version}}" - "org.opencontainers.image.source": "https://github.com/lukaszraczylo/filepuff-mcp" signs: - cmd: cosign @@ -111,11 +101,4 @@ signs: artifacts: checksum output: true -docker_signs: - - cmd: cosign - artifacts: manifests - output: true - args: - - sign - - "${artifact}@${digest}" - - "--yes" + diff --git a/scripts/install.sh b/scripts/install.sh index 0cd5d67..4c31607 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -59,6 +59,13 @@ detect_platform() { ;; esac + # Warn about unsupported combinations + if [ "$os" = "linux" ] && [ "$arch" = "arm64" ]; then + print_error "Linux ARM64 builds are not currently available due to CGO cross-compilation complexity" + print_error "Please build from source: https://github.com/lukaszraczylo/filepuff-mcp#build-from-source" + exit 1 + fi + echo "${os}_${arch}" }