From 89eafda118bc33052b6af175b1b9432c206f7701 Mon Sep 17 00:00:00 2001 From: dennis Date: Tue, 3 Mar 2026 15:51:44 -0800 Subject: [PATCH 1/3] feat: distribute ozctl CLI binary for Linux Add linux to the cli build's goos list so ozctl is included in the linux_amd64 and linux_arm64 release tarballs alongside manager. Co-Authored-By: Claude Opus 4.6 --- .goreleaser.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 80329c7..22ae910 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,6 +22,7 @@ builds: env: [CGO_ENABLED=0] goos: - darwin + - linux goarch: - amd64 - arm64 From 783a686785f2f8a004dfd5d6936d74e9b2149da0 Mon Sep 17 00:00:00 2001 From: dennis Date: Wed, 11 Mar 2026 14:11:08 -0700 Subject: [PATCH 2/3] fix: separate goreleaser archives per build to fix multi-platform binary count The addition of Linux to the CLI build caused goreleaser to fail because the default archive had different binary counts per platform (Linux has both manager + ozctl, macOS only has ozctl). Splitting into separate archives resolves this. Co-Authored-By: Claude Opus 4.6 --- .goreleaser.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 22ae910..e150b55 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,6 +27,16 @@ builds: - amd64 - arm64 +archives: + - id: cli + builds: + - cli + name_template: "ozctl_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + - id: manager + builds: + - manager + name_template: "manager_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + universal_binaries: - id: cli name_template: ozctl From 54f15ca031d48202116b6a85d63891638fef4ba0 Mon Sep 17 00:00:00 2001 From: dennis Date: Wed, 11 Mar 2026 14:12:29 -0700 Subject: [PATCH 3/3] fix: only archive the CLI binary, not the manager The manager binary is only used in the Docker image and doesn't need its own release archive. Co-Authored-By: Claude Opus 4.6 --- .goreleaser.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e150b55..68083c5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,10 +32,6 @@ archives: builds: - cli name_template: "ozctl_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - - id: manager - builds: - - manager - name_template: "manager_{{ .Version }}_{{ .Os }}_{{ .Arch }}" universal_binaries: - id: cli