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

GOOS=darwin GOARCH=arm64 results in duplicate symbol link error #3

Open
zosmac opened this issue Nov 21, 2021 · 1 comment
Open

GOOS=darwin GOARCH=arm64 results in duplicate symbol link error #3

zosmac opened this issue Nov 21, 2021 · 1 comment

Comments

@zosmac
Copy link

zosmac commented Nov 21, 2021

The generated

go/pkg/mod/github.com/jackspirou/[email protected]/root_darwin_armx.go

and

go/pkg/mod/github.com/jackspirou/[email protected]/root_darwin.go

both contain the same function initSystemRoots. Both files are compiled when

GOOS=darwin GOARCH=arm64

is specified (e.g. on an M1 Mac).

I removed root_darwin_armx.go from the directory to build successfully.

Should the generate specify +build !darwin? Or should the generated file be removed from the repo and the build instructions specify to run go generate locally only when necessary?

@joeblubaugh
Copy link

We're also running into this issue at Grafana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants