jstarks / npiperelay

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

unrecognized import path "golang.org/x/sys/windows" #3

Open dimiboi opened 6 years ago

dimiboi commented 6 years ago

Executing go get -d github.com/jstarks/npiperelay results in the following:

package golang.org/x/sys/windows: unrecognized import path "golang.org/x/sys/windows" (https fetch: Get https://golang.org/x/sys/windows?go-get=1: dial tcp: i/o timeout)
alexsandro-xpt commented 5 years ago

Same problem here... Some solution?

derula commented 5 years ago

I'm getting this:

package golang.org/x/sys/windows: unrecognized import path "golang.org/x/sys/windows" (https fetch: Get https://golang.org/x/sys/windows?go-get=1: dial tcp: lookup golang.org on [fec0:0:0:ffff::2]:53: dial udp [fec0:0:0:ffff::2]:53: connect: invalid argument)
derula commented 5 years ago

Workaround:

go get -u github.com/golang/golang/sys/windows
mv ~/go/github.com/golang ~/go/golang.org/x
go get -d github.com/jstarks/npiperelay

Seems to work.

Note that my Go folder is ~/go and you will need to change the mv command if yours is different.

RobertDeRose commented 4 years ago

I had to do this:

GOOS=windows go get -d github.com/jstarks/npiperelay
GOOS=windows go build -o /mnt/c/Users/<username>/go/bin/npiperelay.exe github.com/jstarks/npiperelay
MarcianoH commented 4 years ago

I had to do this:

GOOS=windows go get -d github.com/jstarks/npiperelay
GOOS=windows go build -o /mnt/c/Users/<username>/go/bin/npiperelay.exe github.com/jstarks/npiperelay

Works for me! Thank you.