Skip to content

Commit

Permalink
Merge pull request #332 from arbourd/use-dep
Browse files Browse the repository at this point in the history
Use dep
  • Loading branch information
ianlivingstone committed Dec 7, 2017
2 parents 587af0f + 34c8071 commit 74c95ca
Show file tree
Hide file tree
Showing 6 changed files with 334 additions and 211 deletions.
218 changes: 218 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 106 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# 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"

# ignored = ["golang.org/x/sys/unix"]

[[constraint]]
name = "github.com/asaskevich/govalidator"
version = "5.0.0"

[[constraint]]
name = "github.com/awnumar/memguard"
version = "0.13.2"

[[constraint]]
name = "github.com/aws/aws-sdk-go"
version = "1.5.13"

[[constraint]]
name = "github.com/blang/semver"
version = "3.3.0"

[[constraint]]
name = "github.com/boltdb/bolt"
version = "1.3.0"

[[constraint]]
branch = "master"
name = "github.com/chzyer/readline"

[[constraint]]
branch = "master"
name = "github.com/dchest/blake2b"

[[constraint]]
branch = "master"
name = "github.com/facebookgo/httpdown"

[[constraint]]
name = "github.com/go-ini/ini"
version = "1.21.1"

[[constraint]]
name = "github.com/go-zoo/bone"
version = "1.2.0"

[[constraint]]
branch = "master"
name = "github.com/google/shlex"

[[constraint]]
branch = "master"
name = "github.com/keybase/go-triplesec"

[[constraint]]
name = "github.com/manifoldco/ansiwrap"
version = "1.0.0"

[[constraint]]
name = "github.com/manifoldco/go-base32"
version = "1.0.0"

[[constraint]]
name = "github.com/manifoldco/go-base64"
version = "1.0.0"

[[constraint]]
name = "github.com/natefinch/lumberjack"
version = "2.0.0"

[[constraint]]
branch = "v2"
name = "github.com/natefinch/npipe"

[[constraint]]
name = "github.com/onsi/gomega"
version = "1.1.0"

[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.1.0"

[[constraint]]
name = "github.com/urfave/cli"
version = "1.19.1"

[[constraint]]
name = "gopkg.in/oleiade/reflections.v1"
version = "1.0.0"
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ ci: binary $(LINTERS) cmdlint test

BOOTSTRAP=\
github.com/jteeuwen/go-bindata/... \
github.com/alecthomas/gometalinter
github.com/alecthomas/gometalinter \
github.com/golang/dep/cmd/dep

$(BOOTSTRAP):
go get -u $@
bootstrap: $(BOOTSTRAP)
gometalinter --install
glide -v || curl http://glide.sh/get | sh

.PHONY: bootstrap $(BOOTSTRAP)

Expand Down Expand Up @@ -77,8 +77,8 @@ data/zz_generated_bindata.go: data/ca_bundle.pem data/public_key.json data/aws_i
primitive/zz_generated_primitive.go envelope/zz_generated_envelope.go: $(TOOLS)/primitive-boilerplate primitive/primitive.go
$^

vendor: glide.lock
glide install
vendor: Gopkg.lock
dep ensure

PRIMITIVE_BOILERPLATE=tools/primitive-boilerplate
$(TOOLS)/primitive-boilerplate: $(wildcard $(PRIMITIVE_BOILERPLATE)/*.go) $(wildcard $(PRIMITIVE_BOILERPLATE)/*.tmpl)
Expand All @@ -103,13 +103,13 @@ clean:
#################################################

test: generated vendor
@CGO_ENABLED=0 go test -run=. -bench=. -short $$(glide nv)
@CGO_ENABLED=0 go test -run=. -bench=. -short $$(go list ./... | grep -v ./vendor)

METALINT=gometalinter --tests --disable-all --vendor --deadline=5m -s data \
. --enable

$(LINTERS):
gometalinter --tests --disable-all --vendor --deadline=5m -s data $$(glide nv) --enable $@
gometalinter --tests --disable-all --vendor --deadline=5m -s data $$(go list ./... | grep -v ./vendor) --enable $@

$(TOOLS)/cmdlint: $(wildcard tools/cmdlint/*.go) $(wildcard cmd/*.go)
$(GO_BUILD) -o $@ ./tools/cmdlint
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ platform:
environment:
GOPATH: c:\gopath
GOVERSION: 1.9.1
GLIDEVERSION: 0.12.3
DEPVERSION: 0.3.2

init:
- git config --global core.autocrlf input
Expand All @@ -20,12 +20,12 @@ install:
- set Path=c:\go\bin;c:\gopath\bin;%Path%
- go version
- go env
- appveyor DownloadFile https://github.com/Masterminds/glide/releases/download/v%GLIDEVERSION%/glide-v%GLIDEVERSION%-windows-amd64.zip
- appveyor DownloadFile https://github.com/golang/dep/releases/download/v%DEPVERSION%/dep-windows-amd64
- md %GOPATH%\bin
- 7z e glide-v%GLIDEVERSION%-windows-amd64.zip -o%GOPATH%\bin *.exe -r
- move dep-windows-amd64 %GOPATH%\bin\dep.exe

build_script:
- c:\gopath\bin\glide.exe install
- c:\gopath\bin\dep.exe ensure

test_script:
- FOR /f "" %%G in ('go list ./... ^| find /i /v "/vendor/"') DO (go test -run=. -bench=. -v %%G)
Loading

0 comments on commit 74c95ca

Please sign in to comment.