You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all: change package manager from dep to go mod (#1542)
Converts the mono repo from using the `dep` package manager to using the [go mod](https://github.com/golang/go/wiki/Modules) that has become the standard dependency manager in recent releases of Go.
Make the monorepo more accessible to Go developers using standard Go tooling. Modules will be enabled by default in Go 1.13, and were enabled by default when not using a GOPATH in Go 1.11+.
Summary of changes:
* [x] Add a `go.mod` file that contains the same dependencies and dependency versions/hashes/sources.
* [x] Add a `go.sum` which is the smallest set of hashes required to validate that the dependencies at those versions remain consistent.
* [x] Add a `go.list` which is a way for us to visibly see when our dependencies change. Note: This is not a standard file, but is something we can use to validate reproducibility until the `go mod` commands provide something similar.
* [x] Update CircleCI and TravisCI builds so that they succeed
* [x] Update CircleCI and TravisCI builds so that they fail if any of the above `go.*` files are out of date.
* [x] Update documentation within the repository
* [x] Test that other projects can import this repo. (This will be much easier, unfortunately, to test after merging, but I am currently attempting to test this before merging.)
* [x] Remove the existing `dep` files, `Gopkg.toml` and `Gopkg.lock`. (This will occur just before merging.)
Known limitations & issues:
This change bumps our minimum supported version of Go to 1.11.4. Versions prior to that version contained a bug when Modules are in use that prevented the importing of some packages. There are more details about the issue here: golang/go#30446 (comment).
All changes:
* all: update ci config to use modules instead of dep
* all: go mod init
* all: go mod tidy -v
* all: go get github.com/gobuffalo/[email protected]
* all: go get github.com/spf13/cobra@9c28e4bbd74e
* all: go mod tidy -v
* all: go get github.com/BurntSushi/toml@99064174e013
* all: go get github.com/spf13/viper@db7ff930a189, go mod tidy
* all: go get github.com/mitchellh/mapstructure@2caf8efc9366, go mod tidy
* all: go get github.com/kr/pretty@e6ac2fc51e89, go mod tidy
* all: go get github.com/kr/text@e373e137fafd, go mod tidy
* all: go get github.com/sirupsen/logrus@070c81def33f, go mod tidy
* all: go get github.com/spf13/pflag@4bd69631f475, go mod tidy
* all: go get github.com/spf13/jwalterweatherman@3d60171a6431, go mod tidy
* all: go get github.com/magiconair/[email protected], go mod tidy
* all: go get github.com/spf13/cast@4d07383ffe94, go mod tidy
* all: go get github.com/davecgh/go-spew@5215b55f46b2, go mod tidy
* all: go get github.com/stretchr/testify@976c720a22c8, go mod tidy
* all: go get github.com/stretchr/objx@1a9d0bb9f541, go mod tidy
* all: commit go.sum file
* all: commit go.list file generated with go list -m all > go.list
* all: download dependencies in an earlier step
* all: change the install process for staticcheck to leverage modules
* all: add check of dependencies
* all: add checks and tests running with go1.13rc1
* all: allow install of a newer versions of some packages for buster images
* all: do a check of deps before building for publishing
* doc: update readmes with new building instructions
* all: update travis.yml with modules and go1.13rc1
* all: update dockerfiles with modules
* all: set go.mod's go directive to go 1.11
* all: run travis builds on the latest minor release of each
* doc: increase min version of Go to 1.11.4
* all: cache go mod download
* all: use new git repo for gocheck
* all: skip go.sum checks for go 1.11.* because it is inconsistent with other versions of go
* all: remove reference to dep in dockerfile
* all: remove reference to dep in horizon dockerfile
* all: remove curl in horizon dockerfile because was only needed for dep
* doc: remove mention of go-dep
* doc: remove mention of dep in developing documentation
* doc: update min Go required to go1.11.4
* doc: improve developer building instructions
* all: install postgres-client-9.6 via postgres apt
* all: go get github.com/rcrowley/go-metrics@51425a2415d2, go mod tidy
* all: remove duplicate steps from poor copy and paste
* all: go get golang.org/x/net@ba9fcec4b297b415637633c5a6e8fa592e4a16c3, go mod tidy
* all: use a cache key that references go.mod too
* all: remove dep files: Gopkg.*
0 commit comments