Skip to content

Commit 732164f

Browse files
fix: Update .goreleaser.yml (#2394)
Getting error when performing the release: `clang: error: argument unused during compilation: '-arch x86_64' [-Werror,-Wunused-command-line-argument] ` It seems like CGO [isn't supported with goreleaser](https://goreleaser.com/cookbooks/cgo-and-crosscompiling/) and instead it recommends using [goreleaser-cross](https://github.com/goreleaser/goreleaser-cross) instead. example goreleaser file is shown here: https://github.com/goreleaser/goreleaser-cross-example/blob/master/.goreleaser.yaml. This may be tricky to do, as we would be having to different goreleasers running, one for cross compliatied binaries and the other for native binaries. In the meantime, rolling back change.
1 parent 5194478 commit 732164f

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.goreleaser.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
builds:
22
- env:
3-
- >-
4-
{{- if or (eq .Os "darwin") (eq .Os "windows") -}}
5-
CGO_ENABLED=1
6-
{{- else -}}
7-
CGO_ENABLED=0
8-
{{- end -}}
3+
- CGO_ENABLED=0
94
goos:
105
- windows
116
- linux

0 commit comments

Comments
 (0)