go-bindata icon indicating copy to clipboard operation
go-bindata copied to clipboard

installation instruction not working with go1.17.1

Open stefanofornari opened this issue 4 years ago • 4 comments
trafficstars

go get -u github.com/go-bindata/go-bindata/...
go get: installing executables with 'go get' in module mode is deprecated.
	To adjust and download dependencies of the current module, use 'go get -d'.
	To install using requirements of the current module, use 'go install'.
	To install ignoring the current module, 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'.

stefanofornari avatar Sep 28 '21 10:09 stefanofornari

Having the same problem, different error message on go version go1.17 darwin/amd64:

go get -u github.com/go-bindata/go-bindata/...
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'.

I thought I had a workaround where I successfully built with this a month or two ago but no luck today: go install -a -v github.com/go-bindata/go-bindata/...

vid-pas avatar Sep 30 '21 18:09 vid-pas

Update; this seems to have worked: go install -a -v github.com/go-bindata/go-bindata/...@latest

If that's suitable I'm happy to make a PR.

vid-pas avatar Sep 30 '21 18:09 vid-pas

Created the PR; and excluded the install/build options -v (show file name) -a (force overwrite, if installed). go install github.com/go-bindata/go-bindata/...

vid-pas avatar Sep 30 '21 19:09 vid-pas

And this will installed in your $GOPATH/bin dir, So you should add the path to the /etc/profile, then you can work anywhere

rootrl avatar Nov 03 '21 08:11 rootrl