karalabe / xgo

Go CGO cross compiler
MIT License
2.14k stars 280 forks source link

Outside project not in GOPATH can't use go mod with build tags -mod=vendor #194

Open 15652768278 opened 4 years ago

15652768278 commented 4 years ago

RT, If I link the soft link use ln -s the xgo run go get timeout, like this get https://proxy.golang.org/github.com/go-xorm/xorm/@v/v0.7.9.mod: Get https://proxy.golang.org/github.com/go-xorm/xorm/@v/v0.7.9.mod: net/http: TLS handshake timeout but I use the go mod and create vendor path in project path, and I want build mod use project path vendor, maybe not success xgo -v -x \ -image=dockerhub.deepglint.com/golang/karalabe/xgo-latest:latest \ -targets=linux/arm64 \ -buildmode=vendor \ . What should I do?