Skip to content

Commit c3cb47a

Browse files
authored
Merge pull request #6 from circleci/sr/cgo
Disable CGO for the fake agent build
2 parents 32f3126 + e7bdc87 commit c3cb47a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

do

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ download-taskagents() {
1818
# shellcheck disable=SC2034
1919
help_build_fake_agents="Build the fake agent go binaries"
2020
build-fake-agents() {
21+
export CGO_ENABLED=0
22+
2123
GOOS=linux GOARCH=amd64 go build -C ./fake-agent -o ../bin/circleci-fake-agent-amd64 ./
2224
GOOS=linux GOARCH=arm64 go build -C ./fake-agent -o ../bin/circleci-fake-agent-arm64 ./
2325
}

0 commit comments

Comments
 (0)