Skip to content

Commit 21be078

Browse files
authored
Merge pull request #17 from mtchavez/f-golang-dep
Use dep for dependencies
2 parents c01da59 + 04485b8 commit 21be078

File tree

4 files changed

+79
-4
lines changed

4 files changed

+79
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@
1717
*.gob
1818
*.txt
1919
*.log
20+
21+
# Dependencies
22+
vendor

Gopkg.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# Gopkg.toml example
3+
#
4+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5+
# for detailed Gopkg.toml documentation.
6+
#
7+
# required = ["github.com/user/thing/cmd/thing"]
8+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9+
#
10+
# [[constraint]]
11+
# name = "github.com/user/project"
12+
# version = "1.0.0"
13+
#
14+
# [[constraint]]
15+
# name = "github.com/user/project2"
16+
# branch = "dev"
17+
# source = "github.com/myfork/project2"
18+
#
19+
# [[override]]
20+
# name = "github.com/x/y"
21+
# version = "2.4.0"
22+
23+
24+
[[constraint]]
25+
branch = "master"
26+
name = "github.com/DataDog/mmh3"
27+
28+
[[constraint]]
29+
branch = "master"
30+
name = "github.com/dgryski/go-farm"
31+
32+
[[constraint]]
33+
name = "github.com/stretchr/testify"
34+
version = "1.1.4"

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ ROOT := $(CURDIR)
22
GOPKGS = \
33
golang.org/x/tools/cmd/cover \
44
github.com/golang/lint/golint \
5-
github.com/tools/godep
5+
github.com/golang/dep/cmd/dep
66

77
default: test
88

99
deps:
1010
@go get -u -v $(GOPKGS)
11-
@go get -u -v -t ./...
12-
@if [ `which godep` ] && [ -f ./Godeps/Godeps.json ]; then godep restore; fi
11+
@dep ensure
1312

1413
lint:
1514
@echo "[Lint] running golint"
@@ -23,6 +22,6 @@ ci: deps vet lint test
2322

2423
test:
2524
@echo "[Test] running tests"
26-
@if [ "$CI" ]; then goveralls -service=travis-ci; else go test -v -cover; fi
25+
@if [ "$(CI)" ]; then goveralls -service=travis-ci; else go test -v -cover; fi
2726

2827
.PHONY: default golint test vet deps

0 commit comments

Comments
 (0)