From f72fbfe860d779262ed6119515bf01d546af7794 Mon Sep 17 00:00:00 2001 From: Mathieu Cornic Date: Sat, 26 Aug 2017 11:48:41 +0200 Subject: [PATCH] Feat/go dep (#16) * feat: add go dep --- .gitignore | 1 + .travis.yml | 7 ++-- Gopkg.lock | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Gopkg.toml | 42 +++++++++++++++++++++ 4 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml diff --git a/.gitignore b/.gitignore index ecdb63c..ea31aff 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ _testmain.go .DS_Store coverage.txt +vendor/ diff --git a/.travis.yml b/.travis.yml index 052c34b..d121d46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,19 @@ language: go go: - - 1.6 - 1.7 - 1.8 - master install: -- go get ./... -- go get -t ./... +- go get -u github.com/golang/dep/cmd/dep +- dep ensure - go get -u github.com/alecthomas/gometalinter - gometalinter -u -i -f script: - go test -race -coverprofile=coverage.txt -covermode=atomic -- gometalinter --config=./gometalinter.json ./... +- gometalinter --vendor --config=./gometalinter.json ./... after_success: - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..5c8e3a4 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,105 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/Masterminds/semver" + packages = ["."] + revision = "517734cc7d6470c0d07130e40fd40bdeb9bcd3fd" + version = "v1.3.1" + +[[projects]] + name = "github.com/Masterminds/sprig" + packages = ["."] + revision = "9526be0327b26ad31aa70296a7b10704883976d5" + version = "2.12.0" + +[[projects]] + name = "github.com/aokoli/goutils" + packages = ["."] + revision = "3391d3790d23d03408670993e957e8f408993c34" + version = "v1.0.1" + +[[projects]] + name = "github.com/davecgh/go-spew" + packages = ["spew"] + revision = "346938d642f2ec3594ed81d874461961cd0faa76" + version = "v1.1.0" + +[[projects]] + branch = "master" + name = "github.com/huandu/xstrings" + packages = ["."] + revision = "3959339b333561bf62a38b424fd41517c2c90f40" + +[[projects]] + name = "github.com/imdario/mergo" + packages = ["."] + revision = "3e95a51e0639b4cf372f2ccf74c86749d747fbdc" + version = "0.2.2" + +[[projects]] + branch = "master" + name = "github.com/jaytaylor/html2text" + packages = ["."] + revision = "7c7a33a7a158a5ce395c803d2b6a209b2bbc14c8" + +[[projects]] + name = "github.com/mattn/go-runewidth" + packages = ["."] + revision = "9e777a8366cce605130a531d2cd6363d07ad7317" + version = "v0.0.2" + +[[projects]] + branch = "master" + name = "github.com/olekukonko/tablewriter" + packages = ["."] + revision = "be5337e7b39e64e5f91445ce7e721888dbab7387" + +[[projects]] + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + +[[projects]] + branch = "master" + name = "github.com/russross/blackfriday" + packages = ["."] + revision = "4048872b16cc0fc2c5fd9eacf0ed2c2fedaa0c8c" + +[[projects]] + name = "github.com/satori/go.uuid" + packages = ["."] + revision = "879c5887cd475cd7864858769793b2ceb0d44feb" + version = "v1.1.0" + +[[projects]] + branch = "master" + name = "github.com/ssor/bom" + packages = ["."] + revision = "6386211fdfcf24c0bfbdaceafd02849ed9a8a509" + +[[projects]] + name = "github.com/stretchr/testify" + packages = ["assert"] + revision = "69483b4bd14f5845b5a1e55bca19e954e827f1d0" + version = "v1.1.4" + +[[projects]] + branch = "master" + name = "golang.org/x/crypto" + packages = ["pbkdf2","scrypt"] + revision = "81e90905daefcd6fd217b62423c0908922eadb30" + +[[projects]] + branch = "master" + name = "golang.org/x/net" + packages = ["html","html/atom"] + revision = "57efc9c3d9f91fb3277f8da1cff370539c4d3dc5" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "4e74aaf6892a9d5f15468c703ce8ff2ca7ad02da350a56b987946ef7e5761d52" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..122ba94 --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,42 @@ + +# 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/Masterminds/sprig" + version = "2.12.0" + +[[constraint]] + name = "github.com/imdario/mergo" + version = "0.2.2" + +[[constraint]] + branch = "master" + name = "github.com/jaytaylor/html2text" + +[[constraint]] + name = "github.com/russross/blackfriday" + branch = "master" + +[[constraint]] + name = "github.com/stretchr/testify" + version = "1.1.4"