Skip to content

Commit c383f2a

Browse files
author
Michael Wiesenbauer
committed
use cgo only in darwin builds
1 parent 24b3ec5 commit c383f2a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.goreleaser.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
env:
22
- GO111MODULE=on
3-
- CGO_ENABLED=1
3+
- CGO_ENABLED=0
44
- GOFLAGS=-mod=vendor
55
- GOPROXY=off
66
builds:
@@ -9,6 +9,7 @@ builds:
99
env:
1010
- CC=o64-clang
1111
- CXX=o64-clang++
12+
- CGO_ENABLED=1
1213
goos:
1314
- darwin
1415
goarch:
@@ -47,6 +48,7 @@ builds:
4748
env:
4849
- CC=o64-clang
4950
- CXX=o64-clang++
51+
- CGO_ENABLED=1
5052
goos:
5153
- darwin
5254
goarch:
@@ -61,6 +63,8 @@ builds:
6163
goarch:
6264
- amd64
6365
main: ./cmd/cfssl-bundle
66+
flags:
67+
- -trimpath
6468
ldflags:
6569
- -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
6670
- -linkmode external -extldflags "-static"
@@ -83,6 +87,7 @@ builds:
8387
env:
8488
- CC=o64-clang
8589
- CXX=o64-clang++
90+
- CGO_ENABLED=1
8691
goos:
8792
- darwin
8893
goarch:
@@ -119,6 +124,7 @@ builds:
119124
env:
120125
- CC=o64-clang
121126
- CXX=o64-clang++
127+
- CGO_ENABLED=1
122128
goos:
123129
- darwin
124130
goarch:
@@ -155,6 +161,7 @@ builds:
155161
env:
156162
- CC=o64-clang
157163
- CXX=o64-clang++
164+
- CGO_ENABLED=1
158165
goos:
159166
- darwin
160167
goarch:
@@ -191,6 +198,7 @@ builds:
191198
env:
192199
- CC=o64-clang
193200
- CXX=o64-clang++
201+
- CGO_ENABLED=1
194202
goos:
195203
- darwin
196204
goarch:
@@ -263,6 +271,7 @@ builds:
263271
env:
264272
- CC=o64-clang
265273
- CXX=o64-clang++
274+
- CGO_ENABLED=1
266275
goos:
267276
- darwin
268277
goarch:

0 commit comments

Comments
 (0)