From fa1cf198a7c22a0f7537c565e36a19567bbde0d8 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 2 Jan 2019 16:36:04 -0800 Subject: Upgrade to Go 1.11 and use modules (#33) This commit modernizes the repository organization a bit. In short, this, - Upgrades to Go 1.11. - Uses Go modules instead of Glide. - Drops errcheck, which we rarely use in our codebase internally. - Uses `./...` to run build, tests, etc. since that does not have to account for vendor anymore. - Drops `-installsuffix cgo` from the production build. This was a workaround for pre-1.10 versions of Go. See https://github.com/golang/go/issues/9344#issuecomment-69944514. - Uses a tools.go as recommended in [go-modules-by-example/tools][1] to pin to tool dependencies. - Uses `go run` instead of `go install`ing tools globally. [1]: https://github.com/go-modules-by-example/index/tree/master/010_tools Tested locally with `make docker-launch`. --- glide.yaml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 glide.yaml (limited to 'glide.yaml') diff --git a/glide.yaml b/glide.yaml deleted file mode 100644 index ef43e8e..0000000 --- a/glide.yaml +++ /dev/null @@ -1,19 +0,0 @@ -package: go.uber.org/sally -import: -- package: gopkg.in/yaml.v2 -- package: github.com/julienschmidt/httprouter - version: ^1 -testImport: -- package: github.com/stretchr/testify -- package: github.com/yosssi/gohtml -- package: github.com/golang/lint - subpackages: - - golint -- package: golang.org/x/tools - subpackages: - - go/gcimporter15 -- package: github.com/kisielk/errcheck -- package: github.com/kisielk/gotool -- package: honnef.co/go/tools - subpackages: - - cmd/staticcheck -- cgit v1.2.3