package github.com/GopeedLab/gopeed/bind/desktop: build constraints exclude all Go files in /Users/ziren/W/A/gopeed-1.5.5/bind/desktop
原因为之前设置了交叉编译linux版本的go变量
重新设置为原生mac编译问题解决,支持CGO
go env -w CC=""
go env -w CXX=""
go env -w CGO_ENABLED='1'
go env -w GOOS='darwin'
更多资料
go构建约束问题,Build constraints exclude all Go files in ?https://segmentfault.com/q/1010000022152781 【Golang】排查 Build constraints exclude all the go files 的几个思路
https://blog.csdn.net/weixin_45651194/article/details/130530209