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?