Skip to content

Commit 36d51da

Browse files
authored
remove unnecessary CGO_ENABLE=1 from build command (#24)
1 parent 361b59e commit 36d51da

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.goreleaser.yaml

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ builds:
1010
- id: casaos-gateway-amd64
1111
binary: build/sysroot/usr/bin/casaos-gateway
1212
env:
13-
- CGO_ENABLED=1
1413
- CC=x86_64-linux-gnu-gcc
1514
ldflags:
1615
- -s
@@ -29,7 +28,6 @@ builds:
2928
- id: casaos-gateway-arm64
3029
binary: build/sysroot/usr/bin/casaos-gateway
3130
env:
32-
- CGO_ENABLED=1
3331
- CC=aarch64-linux-gnu-gcc
3432
ldflags:
3533
- -s
@@ -38,6 +36,7 @@ builds:
3836
tags:
3937
- musl
4038
- netgo
39+
- osusergo
4140
goos:
4241
- linux
4342
goarch:
@@ -48,7 +47,6 @@ builds:
4847
- id: casaos-gateway-arm-7
4948
binary: build/sysroot/usr/bin/casaos-gateway
5049
env:
51-
- CGO_ENABLED=1
5250
- CC=arm-linux-gnueabihf-gcc
5351
ldflags:
5452
- -s
@@ -57,6 +55,7 @@ builds:
5755
tags:
5856
- musl
5957
- netgo
58+
- osusergo
6059
goos:
6160
- linux
6261
goarch:
@@ -70,7 +69,6 @@ builds:
7069
binary: build/sysroot/usr/bin/casaos-gateway-migration-tool
7170
main: ./cmd/migration-tool
7271
env:
73-
- CGO_ENABLED=1
7472
- CC=x86_64-linux-gnu-gcc
7573
ldflags:
7674
- -s
@@ -79,6 +77,7 @@ builds:
7977
tags:
8078
- musl
8179
- netgo
80+
- osusergo
8281
goos:
8382
- linux
8483
goarch:
@@ -87,7 +86,6 @@ builds:
8786
binary: build/sysroot/usr/bin/casaos-gateway-migration-tool
8887
main: ./cmd/migration-tool
8988
env:
90-
- CGO_ENABLED=1
9189
- CC=aarch64-linux-gnu-gcc
9290
ldflags:
9391
- -s
@@ -96,6 +94,7 @@ builds:
9694
tags:
9795
- musl
9896
- netgo
97+
- osusergo
9998
goos:
10099
- linux
101100
goarch:
@@ -104,7 +103,6 @@ builds:
104103
binary: build/sysroot/usr/bin/casaos-gateway-migration-tool
105104
main: ./cmd/migration-tool
106105
env:
107-
- CGO_ENABLED=1
108106
- CC=arm-linux-gnueabihf-gcc
109107
ldflags:
110108
- -s
@@ -113,6 +111,7 @@ builds:
113111
tags:
114112
- musl
115113
- netgo
114+
- osusergo
116115
goos:
117116
- linux
118117
goarch:

0 commit comments

Comments
 (0)