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

'go get' doesn't work, use 'go install' instead #78

Open
vucefalas opened this issue Oct 20, 2022 · 0 comments
Open

'go get' doesn't work, use 'go install' instead #78

vucefalas opened this issue Oct 20, 2022 · 0 comments

Comments

@vucefalas
Copy link

vucefalas commented Oct 20, 2022

The following doesn't work:

$ go get github.com/gcash/bchwallet
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'.

The recommended way is to use 'go install', however the following error occurs when trying this:

$ go install github.com/gcash/bchwallet@latest
go: downloading github.com/gcash/bchwallet v0.10.0
go: github.com/gcash/bchwallet@latest (in github.com/gcash/[email protected]):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.
@vucefalas vucefalas changed the title 'go get github.com/gcash/bchwallet 'go get' doesn't work, use 'go install' instead Oct 20, 2022
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