Presently working beneath command to construct on my m1 mac, however it builds as amd64. I wish to construct as arm64. I attempted prepending the command with GOARCH=arm64, however then I get the error “bundle archwayhq/keyring-go/src/go: construct constraints exclude all Go recordsdata in /Customers/davidchoi/Work/philabs/node-api/hello-world/src/go” although my most important.go file doesn’t use // go:construct. Undecided what is occurring.
go construct -trimpath -buildmode=c-shared -ldflags '-w -s -extldflags "-lresolv"' -o keyring.so ./src/go
On macs that is the command that’s wantedCGO_ENABLED=1 GOARCH=arm64 GOHOSTARCH=arm64 go construct -trimpath -buildmode=c-shared -ldflags '-w -s -extldflags "-lresolv"' -o keyring.so -a ./src/go