hi devs, installing statik with `go get <http://gi...
# dev
a
hi devs, installing statik with
go get <http://github.com/rakyll/statik|github.com/rakyll/statik>
returned the following message:
Copy code
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 <http://example.com/cmd@latest|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'.
which one is should I use to install statik?
go get -d
or
go install
?
b
From the error message it looks like you are using go 1.7x. So you will need to use go install.
note that we have
tools.go
in our project that will get the required deps for you when you run
make
.
The trick is to consume the package of the tool so the specific version is captured by
go.sum
and when you build the project
go
will fetch them for you.
a
thanks, Barak! In setting up the environment, Install statik is before
make
in the contribution docs, should I open a pr for it?
b
sure, thanks