From 9eb110a2076fad792f40dca87edd4c2143698e4e Mon Sep 17 00:00:00 2001 From: ZacxDev Date: Sat, 18 Jul 2026 16:50:37 -0500 Subject: [PATCH 1/2] build: pin Go toolchain go1.25.12 + add windows/arm64 release target Add a `toolchain go1.25.12` directive to go.mod for reproducible builds, pinning the build toolchain to the current 1.25 patch. The language version stays at `go 1.25.0` (support policy = last 2 minors, 1.25 is still supported; a 1.26 bump is a separate call). The toolchain line is >= the go line as required. Widen the goreleaser release matrix to include windows/arm64 by dropping the `ignore` block that excluded it. This is a pure cross-compile addition; the existing windows->zip format override already covers it. darwin/linux entries are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- .goreleaser.yaml | 3 --- go.mod | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 14168425..0429738e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -31,9 +31,6 @@ builds: goarch: - amd64 - arm64 - ignore: - - goos: windows - goarch: arm64 archives: - id: civitai diff --git a/go.mod b/go.mod index d3c5ebb0..08fd2d7b 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/civitai/cli go 1.25.0 +toolchain go1.25.12 + require ( github.com/charmbracelet/bubbles v1.0.0 github.com/charmbracelet/bubbletea v1.3.10 From 503d28c6bfa47fd39efabb3d0f9c20f0e1e7e9b1 Mon Sep 17 00:00:00 2001 From: ZacxDev Date: Sat, 18 Jul 2026 17:06:38 -0500 Subject: [PATCH 2/2] fix(npm): unblock windows/arm64 in the install wrapper (matches the release matrix) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The npm wrapper's UNSUPPORTED set still listed windows/arm64, so after enabling it in the GoReleaser matrix the binary WOULD build but `npm i -g @civitai/cli` on windows/arm64 would still throw "no prebuilt binary … (not built by GoReleaser)" — a now-false error. Emptied the set (all OS_MAP×ARCH_MAP combos are built) so the wrapper resolves civitai__windows_arm64.exe from the civitai-raw archive. Kept the mechanism + comment for future matrix drops. Co-Authored-By: Claude Opus 4.8 (1M context) --- npm/lib/install.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npm/lib/install.js b/npm/lib/install.js index 97ad0173..8bafb106 100644 --- a/npm/lib/install.js +++ b/npm/lib/install.js @@ -23,8 +23,10 @@ const BINARIES_DIR = path.join(__dirname, "binaries"); const OS_MAP = { linux: "linux", darwin: "darwin", win32: "windows" }; const ARCH_MAP = { x64: "amd64", arm64: "arm64" }; -// Combos GoReleaser does NOT build (see .goreleaser.yaml `ignore:`). -const UNSUPPORTED = new Set(["windows/arm64"]); +// Combos GoReleaser does NOT build (keep in sync with .goreleaser.yaml). All +// OS_MAP×ARCH_MAP combos are now built (windows/arm64 enabled), so this is empty; +// re-add an entry here if a target is ever dropped from the release matrix. +const UNSUPPORTED = new Set([]); function target() { const goos = OS_MAP[process.platform];