Deprecation of 'go get' for installing executables
afdesk opened this issue · 1 comments
afdesk commented
Hi!
Thanks for your job!
the described installation method (installation) doesn't work in Go 1.17 or later.
Reason: Deprecation of 'go get' for installing executables.
I've tried to use go install
:
$ go install github.com/lucasepe/modgv/modgv@latest
go install: github.com/lucasepe/modgv/modgv@latest (in github.com/lucasepe/modgv/modgv@v0.0.0-20200919074428-ed4d9e52f7a6):
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.
$ go install github.com/lucasepe/modgv/modgv@v0.2.1
go install: github.com/lucasepe/modgv/modgv@v0.2.1: module github.com/lucasepe/modgv@v0.2.1 found, but does not contain package github.com/lucasepe/modgv/modgv
$ go install github.com/lucasepe/modgv@v0.2.1
package github.com/lucasepe/modgv is not a main package
FYI.
lucasepe commented
Hi!
Thank you!
Yes! I'm aware of this... as soon as I have the time I'll do a quick refactoring.