From aa1af50c2ba31cd624b16cf20eba41ded5ac2066 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 10:18:31 +0000 Subject: [PATCH 1/2] fix: disable CGO for md2view cross-compilation Set CGO_ENABLED=0 in .goreleaser.yaml for the md2view binary to prevent cross-compilation failures on targets like linux_arm64. Since we don't have C cross-compilers set up in the GoReleaser environment, static compilation with pure Go is required. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com> --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2e63c91..ae420cb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -49,7 +49,7 @@ builds: binary: md2view gobinary: go env: - - CGO_ENABLED=1 + - CGO_ENABLED=0 goos: - linux - darwin From 22ae8167ad073776d8f507601c3f168f7407c8f1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 12:31:37 +0000 Subject: [PATCH 2/2] fix: restrict md2view to linux_amd64 with CGO enabled GoReleaser CI fails when cross-compiling the CGO-dependent `md2view` binary for non-native targets (like linux_arm64, darwin, windows) because it lacks proper C cross-compilers in the ubuntu-latest runner. This restricts the md2view build strictly to linux/amd64 where CGO can safely build natively, allowing the pipeline to pass. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com> --- .goreleaser.yaml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ae420cb..0b3952f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -49,27 +49,11 @@ builds: binary: md2view gobinary: go env: - - CGO_ENABLED=0 + - CGO_ENABLED=1 goos: - linux - - darwin - - windows - - freebsd goarch: - amd64 - - arm64 - - arm - - 386 - goarm: - - 6 - - 7 - ignore: - - goos: darwin - goarch: 386 - - goos: darwin - goarch: arm - - goos: windows - goarch: arm ldflags: - -s -w flags: