go-bindata
go-bindata copied to clipboard
installation instruction not working with go1.17.1
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'.
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/...
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.
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/...
And this will installed in your $GOPATH/bin dir, So you should add the path to the /etc/profile, then you can work anywhere