Skip to content

Commit

Permalink
chore: remove explicit cgo disablement
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <[email protected]>
  • Loading branch information
hairyhenderson committed Jun 23, 2024
1 parent 119a5ab commit 3c2bd7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Test
run: make test
env:
CGO_ENABLED: '0'
GOARCH: ${{ matrix.goarch }}
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERAGE_VERSION: '1.19'
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ test-deps:
race_goarches := 'amd64' 'arm64'
ifeq (,$(findstring '$(GOARCH)',$(race_goarches)))
TEST_ARGS=
export CGO_ENABLED=0
else
TEST_ARGS=-race
# the race detector needs cgo (at least on Linux and Windows, and macOS until Go 1.20)
export CGO_ENABLED=1
endif

.PHONY: test
Expand Down

0 comments on commit 3c2bd7f

Please sign in to comment.