Skip to content

Commit 3e03155

Browse files
authored
fix: disable cgo dependencies in goreleaser (#87)
1 parent 4c71a3d commit 3e03155

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.goreleaser.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ builds:
99
ldflags:
1010
- -s -w
1111
-X main.VERSION={{.Version}}
12+
# Include the default settings from https://goreleaser.com/#builds
13+
# Also include static compilation
14+
# ldflags: -d -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -extldflags "-static"
15+
# Ensure the binary is static
16+
env:
17+
- CGO_ENABLED=0
1218
archives:
1319
- format: binary
1420
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"

screwdriver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- gofmt: ret=$(find . -name '*.go' | xargs gofmt -d) && echo "$ret" && test -z "$ret"
1414
- test-setup: go install gotest.tools/gotestsum@latest
1515
- test: gotestsum --format testname --jsonfile ${SD_ARTIFACTS_DIR}/report.json -- -coverprofile=${SD_ARTIFACTS_DIR}/coverage.out ./...
16-
- build: CGO_ENABLED=0 go build -a -o store-cli
16+
- build: go build -a -o store-cli
1717
- test-release: "curl -sL https://git.io/goreleaser | bash -s -- --snapshot"
1818

1919
deploy:

0 commit comments

Comments
 (0)