Skip to content

Commit

Permalink
manage dependencies with glide
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Clendenin committed Nov 23, 2016
1 parent c13c0b0 commit 12dc678
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ _testmain.go
*.swp

mongodb_exporter
vendor/
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ test:
@rm *.out

deps:
go get -u github.com/prometheus/client_golang/prometheus
go get -u gopkg.in/mgo.v2
glide install

build: deps
go build mongodb_exporter.go
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Make sure $GOPATH/bin is in your $PATH, then:

## Building

Requires [glide](https://github.com/Masterminds/glide) for dependency management

go get -u github.com/dcu/mongodb_exporter
cd $GOPATH/src/github.com/dcu/mongodb_exporter
make build
Expand Down
41 changes: 41 additions & 0 deletions glide.lock

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

10 changes: 10 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package: github.com/dcu/mongodb_exporter
import:
- package: github.com/golang/glog
- package: github.com/prometheus/client_golang
version: v0.8.0
subpackages:
- prometheus
- package: gopkg.in/mgo.v2
subpackages:
- bson

0 comments on commit 12dc678

Please sign in to comment.