xdrpp / goxdr

RFC4506 XDR compiler for go https://xdrpp.github.io/goxdr/pkg/github.com/xdrpp/goxdr/cmd/goxdr/goxdr.1.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggest "go install" instead of "go get" in README

chmike opened this issue · comments

When trying to install goxdr with the command go get github.com/xdrpp/goxdr/cmd/goxdr as suggested in the README, I got the following error message:

$ go version
go version go1.17.8 linux/amd64

$ go get github.com/xdrpp/goxdr/cmd/goxdr
go: downloading github.com/xdrpp/goxdr v0.1.1
go get: installing executables with 'go get' in module mode is deprecated.
	Use 'go install pkg@version' instead.
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

It succeeded once I used the command $ go install github.com/xdrpp/goxdr/cmd/goxdr@latest.

As I understand it, one must use go install to install programs and go get to install packages provided we are in a directory tree that contains a go.mod file.