Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit a5d472b

Browse files
committed
Switch to Dep for dependency management
Dep (https://golang.github.io/dep/) is now used for dependency management instead of Glide. See README.md for build instructions using Dep.
1 parent d40acaf commit a5d472b

5 files changed

Lines changed: 287 additions & 516 deletions

File tree

Gopkg.lock

Lines changed: 220 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: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/go-kit/kit"
30+
version = "0.6.0"
31+
32+
[[constraint]]
33+
name = "github.com/gogo/protobuf"
34+
version = "1.0.0"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "github.com/golang/snappy"
39+
40+
[[constraint]]
41+
branch = "master"
42+
name = "github.com/lib/pq"
43+
44+
[[constraint]]
45+
name = "github.com/prometheus/client_golang"
46+
version = "0.8.0"
47+
48+
[[constraint]]
49+
branch = "master"
50+
name = "github.com/prometheus/common"
51+
52+
[[constraint]]
53+
name = "github.com/prometheus/prometheus"
54+
version = "2.2.1"
55+
56+
[prune]
57+
go-tests = true
58+
unused-packages = true

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,28 @@ remote_read:
5353

5454
Before building, make sure the following prerequisites are installed:
5555

56-
* [Glide](https://glide.sh/) for dependency management.
56+
* [Dep](https://golang.github.io/dep/) for dependency management.
5757
* [Go](https://golang.org/dl/)
5858

5959
Then build as follows:
6060

6161
```bash
6262
# Install dependencies (only required once)
63-
glide install --strip-vendor --strip-vcs
63+
dep ensure
6464

6565
# Build binary
6666
make
67+
```
68+
69+
## Building new Docker images
70+
71+
```bash
6772

6873
# Build Docker image
6974
make docker
7075

71-
# Push to Docker registry
72-
make push
76+
# Push to Docker registry (requires permission)
77+
make push ORGANIZATION=myorg
7378
```
7479

7580
## Contributing

0 commit comments

Comments
 (0)