Skip to content

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

Description

@zosmac

The generated

go/pkg/mod/github.com/jackspirou/syscerts@v0.0.0-20160531025014-b68f5469dff1/root_darwin_armx.go

and

go/pkg/mod/github.com/jackspirou/syscerts@v0.0.0-20160531025014-b68f5469dff1/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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions