Skip to content

Commit

Permalink
Merge pull request #40 from honeycombio/ben.alpine
Browse files Browse the repository at this point in the history
disable cgo for alpine-linux compatability
  • Loading branch information
maplebed authored Aug 7, 2019
2 parents 696059c + 7fa74cb commit b19aaf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ commands:
steps:
## method 1 to send a command span
## the raw buildevents binary is available in the $PATH but requires more arguments
## don't use CGO so that this binary can run in alpine-linux containers
- run: |
GOOS=<< parameters.os >> \
GOARCH=<< parameters.arch >> \
CGO_ENABLED=0 \
buildevents cmd $CIRCLE_WORKFLOW_ID $BUILDEVENTS_SPAN_ID go_build -- \
go build -ldflags "-X main.Version=${CIRCLE_TAG}" \
-o $GOPATH/bin/buildevents-<< parameters.os >>-<< parameters.arch >> \
Expand Down

0 comments on commit b19aaf4

Please sign in to comment.