karalabe / xgo

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

Fix $GOPATH mounting on Windows for local builds #116

Open kevinpfab opened 6 years ago

kevinpfab commented 6 years ago

Resolves https://github.com/karalabe/xgo/issues/115

The EXT_GOPATH value used inside the xgo docker build script requires Linux path separators. If xgo was used on Windows and building a local build, the EXT_GOPATH argument would forward along a Windows-style path.

This patch forwards along the path with the proper Linux path separators regardless of the os.PathSeparator value.

Before: EXT_GOPATH=\ext-go\1 After: EXT_GOPATH=/ext-go/1

luiscarrasco commented 6 years ago

This fixes getting the errors mentioned in #115 on my windows setup.

jicg commented 5 years ago

me too。 thanks

thinkgos commented 5 years ago

me too, got it ,thanks!!