Skip to content

Commit

Permalink
fix: have CGO_ENABLED=1 everywhere where building
Browse files Browse the repository at this point in the history
  • Loading branch information
Strobotti committed Feb 22, 2024
1 parent edb0012 commit 7b30b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ builds:
goarch:
- amd64
env:
- CGO_ENABLED=0
- CGO_ENABLED=1
main: ./cmd/
flags:
- -trimpath
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tasks:
sh: echo ${VERSION:-v0.0.0}
OPTIONS: '{{default "" .DEVOPTIONS}}'
cmds:
- GOOS={{.TARGET}} go build -tags release -ldflags '-X main.version={{.VERSION}} -X main.BuildTimestamp={{now | unixEpoch}}' {{.OPTIONS}} -o bin/{{.OUTPUT}}{{exeExt}} cmd/*.go
- CGO_ENABLED=1 GOOS={{.TARGET}} go build -tags release -ldflags '-X main.version={{.VERSION}} -X main.BuildTimestamp={{now | unixEpoch}}' {{.OPTIONS}} -o bin/{{.OUTPUT}}{{exeExt}} cmd/*.go
- echo "bin/{{.OUTPUT}}{{exeExt}} created successfully"
sources:
- ./**/*.go
Expand Down

0 comments on commit 7b30b6f

Please sign in to comment.