Skip to content

Commit 9510bb5

Browse files
aksOpsclaude
andcommitted
fix(release): drop Windows from GoReleaser targets
The v0.1.0 build failed cross-compiling for Windows: the daemon uses syscall.Flock and the resource monitor uses syscall.Statfs/Statfs_t, none of which exist on Windows (and the monitor reads /sys/fs/cgroup, Linux-only). aiusage is a Unix tool, so build only linux/darwin x amd64/arm64. Verified with `goreleaser release --snapshot`: 4 archives + checksums, all compile. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 49ca70c commit 9510bb5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.goreleaser.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ builds:
1818
binary: aiusage
1919
env:
2020
- CGO_ENABLED=0
21+
# Linux and macOS only. aiusage is a Unix tool: the daemon uses flock
22+
# (syscall.Flock) and the resource monitor uses statfs (syscall.Statfs),
23+
# neither of which exists on Windows — and the monitor reads /sys/fs/cgroup,
24+
# which is Linux-specific anyway. Windows is intentionally not a target.
2125
goos:
2226
- linux
2327
- darwin
24-
- windows
2528
goarch:
2629
- amd64
2730
- arm64
@@ -33,10 +36,6 @@ builds:
3336
archives:
3437
- id: default
3538
formats: [tar.gz]
36-
# Windows users expect zip.
37-
format_overrides:
38-
- goos: windows
39-
formats: [zip]
4039
name_template: >-
4140
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
4241

0 commit comments

Comments
 (0)