feat(build): use Go modules to install all cli tools

Using Go modules allows to pin versions in go.mod, so dependency management tools can track those.
Right now make targets will install latest version and travis.yml downloads binaries from github, moving to modules simplifies all of this.
tools.go is needed so that go build doesn't strip those dependencies from go.mod
This commit is contained in:
Łukasz Mierzwa
2019-01-16 09:55:15 +00:00
parent fca9c2d97a
commit d3ff3a4806
5 changed files with 164 additions and 24 deletions

6
go.mod
View File

@@ -1,18 +1,19 @@
module github.com/prymitive/karma
require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/DeanThompson/ginpprof v0.0.0-20170218162546-8c0e31bfeaa8
github.com/blang/semver v3.5.1+incompatible
github.com/certifi/gocertifi v0.0.0-20190105023540-abcd57078448 // indirect
github.com/cnf/structhash v0.0.0-20180104161610-62a607eb0224
github.com/elazarl/go-bindata-assetfs v1.0.0
github.com/elazarl/go-bindata-assetfs v1.0.1-0.20180223160309-38087fe4dafb
github.com/getsentry/raven-go v0.2.0
github.com/gin-contrib/cors v0.0.0-20190101154528-5e7acb10687f
github.com/gin-contrib/gzip v0.0.0-20190101164802-0eb78e93402e
github.com/gin-contrib/static v0.0.0-20181225054800-cf5e10bbd933
github.com/gin-gonic/contrib v0.0.0-20181101072842-54170a7b0b4b
github.com/gin-gonic/gin v1.3.0
github.com/go-bindata/go-bindata v1.0.0 // indirect
github.com/golangci/golangci-lint v1.12.5 // indirect
github.com/hansrodtang/randomcolor v0.0.0-20160512071917-d27108b3d7a5
github.com/mcuadros/go-gin-prometheus v0.0.0-20181030200533-58963fb32f54
github.com/patrickmn/go-cache v2.1.0+incompatible
@@ -22,6 +23,7 @@ require (
github.com/sirupsen/logrus v1.3.0
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.3.1
github.com/terinjokes/bakelite v0.2.0 // indirect
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181117152235-275e9df93516
gopkg.in/yaml.v2 v2.2.2
)