Open dimiboi opened 6 years ago
Same problem here... Some solution?
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)
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.
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
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.
Executing
go get -d github.com/jstarks/npiperelay
results in the following: