Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation instructions are now out of date #25

Open
stevenpollack opened this issue Apr 2, 2022 · 3 comments
Open

installation instructions are now out of date #25

stevenpollack opened this issue Apr 2, 2022 · 3 comments

Comments

@stevenpollack
Copy link

I don't know anything about go, never mind go get, but when I installed the latest version 1.18 inside WSL2, I was alerted to use go install instead of go get. So, what I ended up having to do to use this to pipe through windows:

GOOS=windows go install github.com/jstarks/npiperelay@latest

For future people who land here:

you'll want to check your GOPATH via

go env GOPATH

and then make sure that npiperelay.exe is in your GOBIN -- which might be something like /home/<USER>/go/bin/. I then ended up having to setup a symlink as so

sudo ln -s /home/<USER>/go/bin/windows_amd64/npiperelay.exe /usr/local/bin/npiperelay.exe

there was no need to link this back to my windows user.

@paul-vd
Copy link

paul-vd commented Jul 19, 2022

Thanks for the info, for more details on the issue, I also just ran it in a new environment and I got this:

➜  local go get -d github.com/jstarks/npiperelay
go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

@MichaelHipp
Copy link

I also had to do unset GOBIN for it to work. Complains it can't install cross-compiled binary when GOBIN is set.

@xdhmoore
Copy link

I also don't know anything about go. For compiling/installing in Windows (not cross-compiling from WSL) all I had to do was:

 go install github.com/jstarks/npiperelay@latest

After that the binary was already available on the path and from within WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants