Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test should use CGO_ENABLED=1 on mac+arm #61

Closed
grosser opened this issue Nov 9, 2022 · 2 comments
Closed

make test should use CGO_ENABLED=1 on mac+arm #61

grosser opened this issue Nov 9, 2022 · 2 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@grosser
Copy link

grosser commented Nov 9, 2022

make test
go test ./... \
		-race \
		--ginkgo.focus="" \
		-cover -coverprofile=coverage.out -outputdir=. -coverpkg=./...
go: -race requires cgo; enable cgo by setting CGO_ENABLED=1
make: *** [test] Error 2

... so automatically set it to avoid this ?

CGO_ENABLED=1 make test
go test ./... \
		-race \
@tzneal
Copy link
Contributor

tzneal commented Nov 14, 2022

Do you happen to have CGO_ENABLED=0 set in your local environment?

@bwagner5 bwagner5 added the kind/support Categorizes issue or PR as a support question. label Nov 14, 2022
@grosser
Copy link
Author

grosser commented Nov 16, 2022

echo $CGO_ENABLED

nope

@grosser grosser changed the title make test should use CGO_ENABLED=1 on mac make test should use CGO_ENABLED=1 on mac+arm Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants