Skip to content

Commit e0f200b

Browse files
committed
fix: restore Windows builds with SDK v0.9.1
Update hypeman-go to v0.9.1 which fixes the Windows cross-compilation issue (syscall.Stat_t moved to platform-specific files). - Restore Windows build targets in .goreleaser.yml - Update SDK dependency to v0.9.1 - Keep nfpms.maintainer fix
1 parent fefd087 commit e0f200b

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

.goreleaser.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ builds:
3030
ldflags:
3131
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
3232

33+
- id: windows
34+
goos: [windows]
35+
goarch: ['386', amd64, arm64]
36+
binary: '{{ .ProjectName }}'
37+
main: ./cmd/hypeman/main.go
38+
mod_timestamp: '{{ .CommitTimestamp }}'
39+
ldflags:
40+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
41+
3342
archives:
3443
- id: linux-archive
3544
ids: [linux]
@@ -45,6 +54,14 @@ archives:
4554
files:
4655
- completions/*
4756
- man/*/*
57+
- id: windows-archive
58+
ids: [windows]
59+
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
60+
formats: [zip]
61+
files:
62+
- completions/*
63+
- man/*/*
64+
4865
snapshot:
4966
version_template: '{{ .Tag }}-next'
5067

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/google/go-containerregistry v0.20.7
1212
github.com/gorilla/websocket v1.5.3
1313
github.com/itchyny/json2yaml v0.1.4
14-
github.com/kernel/hypeman-go v0.9.0
14+
github.com/kernel/hypeman-go v0.9.1
1515
github.com/muesli/reflow v0.3.0
1616
github.com/tidwall/gjson v1.18.0
1717
github.com/tidwall/pretty v1.2.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 h1:8Tjv8EJ+pM1xP8mK6egEbD1OgnV
7474
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2/go.mod h1:pkJQ2tZHJ0aFOVEEot6oZmaVEZcRme73eIFmhiVuRWs=
7575
github.com/itchyny/json2yaml v0.1.4 h1:/pErVOXGG5iTyXHi/QKR4y3uzhLjGTEmmJIy97YT+k8=
7676
github.com/itchyny/json2yaml v0.1.4/go.mod h1:6iudhBZdarpjLFRNj+clWLAkGft+9uCcjAZYXUH9eGI=
77-
github.com/kernel/hypeman-go v0.9.0 h1:6qlMVyDsS6DHl9kugUedvqAt63Qdp8WMvnczoQ9Jf3s=
78-
github.com/kernel/hypeman-go v0.9.0/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI=
77+
github.com/kernel/hypeman-go v0.9.1 h1:4EcC9sOYH6f1365IIgJQqgFaZGPekl9DbhhpH/Tt0e8=
78+
github.com/kernel/hypeman-go v0.9.1/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI=
7979
github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co=
8080
github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0=
8181
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=

0 commit comments

Comments
 (0)