From d04233ec621f9780d68f3ef951290201bea4b602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Cidre?= Date: Fri, 26 Jan 2018 09:55:26 +0100 Subject: [PATCH] [#ERNEST-858] : dep and gometalinter --- .gitignore | 2 + Gopkg.lock | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++ Gopkg.toml | 45 ++++++++++++++++++ Makefile | 13 ++---- 4 files changed, 186 insertions(+), 9 deletions(-) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml diff --git a/.gitignore b/.gitignore index 06b8974..00b1c79 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ monit + +vendor/ diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..e3b9d9b --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,135 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/dgrijalva/jwt-go" + packages = ["."] + revision = "dbeaa9332f19a944acb5736b4456cfcc02140e29" + version = "v3.1.0" + +[[projects]] + branch = "master" + name = "github.com/ernestio/ernest-config-client" + packages = ["."] + revision = "d767474ae0ea944ec7ee6b35d2204d2439ee0fae" + +[[projects]] + branch = "master" + name = "github.com/gopherjs/gopherjs" + packages = ["js"] + revision = "178c176a91fe05e3e6c58fa5c989bad19e6cdcb3" + +[[projects]] + name = "github.com/jinzhu/gorm" + packages = [ + ".", + "dialects/postgres" + ] + revision = "5174cc5c242a728b435ea2be8a2f7f998e15429b" + version = "v1.0" + +[[projects]] + branch = "master" + name = "github.com/jinzhu/inflection" + packages = ["."] + revision = "1c35d901db3da928c72a72d8458480cc9ade058f" + +[[projects]] + name = "github.com/jtolds/gls" + packages = ["."] + revision = "77f18212c9c7edc9bd6a33d383a7b545ce62f064" + version = "v4.2.1" + +[[projects]] + branch = "master" + name = "github.com/lib/pq" + packages = [ + ".", + "hstore", + "oid" + ] + revision = "19c8e9ad00952ce0c64489b60e8df88bb16dd514" + +[[projects]] + name = "github.com/nats-io/go-nats" + packages = [ + "encoders/builtin", + "util" + ] + revision = "d66cb54e6b7bdd93f0b28afc8450d84c780dfb68" + version = "v1.4.0" + +[[projects]] + name = "github.com/nats-io/nats" + packages = ["."] + revision = "d66cb54e6b7bdd93f0b28afc8450d84c780dfb68" + version = "v1.4.0" + +[[projects]] + name = "github.com/nats-io/nuid" + packages = ["."] + revision = "289cccf02c178dc782430d534e3c1f5b72af807f" + version = "v1.0.0" + +[[projects]] + branch = "master" + name = "github.com/r3labs/akira" + packages = ["."] + revision = "0f4f76b1155209cbdd18da3693f44f4fc9f8275d" + +[[projects]] + branch = "master" + name = "github.com/r3labs/pattern" + packages = ["."] + revision = "d05362a6d27dc9fd78b02b3fb3242edb9967c0d7" + +[[projects]] + name = "github.com/r3labs/sse" + packages = ["."] + revision = "ab73c814bbdece537f16e92302cd99d1618d0e0d" + version = "1.0.1" + +[[projects]] + name = "github.com/smartystreets/assertions" + packages = [ + ".", + "internal/go-render/render", + "internal/oglematchers" + ] + revision = "0b37b35ec7434b77e77a4bb29b79677cced992ea" + version = "1.8.1" + +[[projects]] + name = "github.com/smartystreets/goconvey" + packages = [ + "convey", + "convey/gotest", + "convey/reporting" + ] + revision = "9e8dc3f972df6c8fcc0375ef492c24d0bb204857" + version = "1.6.3" + +[[projects]] + branch = "v1" + name = "gopkg.in/bsm/ratelimit.v1" + packages = ["."] + revision = "db14e161995a5177acef654cb0dd785e8ee8bc22" + +[[projects]] + name = "gopkg.in/redis.v3" + packages = [ + ".", + "internal", + "internal/consistenthash", + "internal/hashtag", + "internal/pool" + ] + revision = "b5e368500d0a508ef8f16e9c2d4025a8a46bcc29" + version = "v3.6.4" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "44727d65aa783160624cf0ed633e507cc90694234ffba40073ec5c049430708c" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..e35bd2b --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,45 @@ +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" + + +[[constraint]] + name = "github.com/dgrijalva/jwt-go" + version = "3.1.0" + +[[constraint]] + branch = "master" + name = "github.com/ernestio/ernest-config-client" + +[[constraint]] + name = "github.com/nats-io/nats" + version = "1.4.0" + +[[constraint]] + branch = "master" + name = "github.com/r3labs/pattern" + +[[constraint]] + name = "github.com/r3labs/sse" + version = "1.0.1" + +[[constraint]] + name = "github.com/smartystreets/goconvey" + version = "1.6.3" diff --git a/Makefile b/Makefile index bd19e63..5db5bb8 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,8 @@ install: go install -v deps: - go get github.com/r3labs/sse - go get gopkg.in/redis.v3 - go get github.com/nats-io/nats - go get github.com/dgrijalva/jwt-go - go get github.com/r3labs/pattern - go get github.com/ernestio/ernest-config-client + go get -u github.com/golang/dep/cmd/dep + dep ensure dev-deps: deps go get github.com/smartystreets/goconvey/convey @@ -15,14 +11,13 @@ dev-deps: deps gometalinter --install cover: - go test -v ./... --cover + go test -v $(go list ./... | grep -v /vendor/) --cover test: - go test -v -race ./... + go test --cover -v $(go list ./... | grep -v /vendor/) build: go build -v ./... lint: gometalinter --config .linter.conf -