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`. --- go.mod | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 go.mod (limited to 'go.mod') diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..86ea6f5 --- /dev/null +++ b/go.mod @@ -0,0 +1,18 @@ +module go.uber.org/sally + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/golang/lint v0.0.0-20181217174547-8f45f776aaf1 + github.com/julienschmidt/httprouter v1.2.0 + github.com/kisielk/gotool v1.0.0 // indirect + github.com/kr/pretty v0.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/stretchr/testify v1.2.2 + github.com/yosssi/gohtml v0.0.0-20180130040904-97fbf36f4aa8 + golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect + golang.org/x/net v0.0.0-20181220203305-927f97764cc3 // indirect + golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372 // indirect + gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect + gopkg.in/yaml.v2 v2.2.2 + honnef.co/go/tools v0.0.0-20180920025451-e3ad64cb4ed3 +) -- cgit v1.2.3