melbahja / got

Got: Simple golang package and CLI tool to download large files faster 🏃 than cURL and Wget!
MIT License
709 stars 45 forks source link

Darwin Build issue: go:linkname must refer to declared function or variable [solved] #53

Open ink-splatters opened 2 years ago

ink-splatters commented 2 years ago

Hi, the latest version didn't build with the following error


user@host got % go build ./...
# golang.org/x/sys/unix
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190412213103-97732733099d/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable

Original(?)/related issue refers potential solution:

https://github.com/golang/go/issues/51706#issuecomment-1074480464