jstarks / npiperelay

npiperelay allows you to access Windows named pipes from WSL
MIT License
660 stars 71 forks source link

WSL + ubuntu 18.04 bulid errors #9

Open pivenmedia opened 4 years ago

pivenmedia commented 4 years ago

Hi, when i am trying to build npiperelay.exe under WSL+Ubuntu 18.04 i get error below: ➜ ~ go get -d github.com/jstarks/npiperelay go/src/github.com/jstarks/npiperelay/npiperelay.go:12:2: build constraints exclude all Go files in /home/pvm/go/src/golang.org/x/sys/windows

Please advise if there any workaround.

janorn commented 4 years ago

I did this to get it to work.

env GOOS=windows GOARCH=amd64 go get -d github.com/jstarks/npiperelay
env GOOS=windows GOARCH=amd64 go build -o /mnt/c/Users/<myuser>/bin/npiperelay.exe github.com/jstarks/npiperelay
jasonshortphd commented 4 years ago

I ended up git sync the entire repo and then ran the build command from that directory to get it to work. The go get -d didn't work for me for some reason.