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

"To build and install a command, use 'go install' with a version" #17

Open
nodakai opened this issue May 22, 2023 · 0 comments
Open

"To build and install a command, use 'go install' with a version" #17

nodakai opened this issue May 22, 2023 · 0 comments

Comments

@nodakai
Copy link

nodakai commented May 22, 2023

docker run -ti golang:bullseye bash

Followed usocksd's readme but got this error:

root@384463eac0ad:/go# go get -u github.com/cybozu-go/usocksd/...
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'.

This worked for me but I don't code in go professionally, don't really know if this is a proper replacement for the deprecated go get command

root@384463eac0ad:/go# go install github.com/cybozu-go/usocksd/cmd/usocksd@latest
go: downloading github.com/cybozu-go/usocksd v1.3.0
...snip...

root@384463eac0ad:/go# ls -l bin
total 14132
-rwxr-xr-x 1 root root 14466858 May 22 02:30 usocksd
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

1 participant