Skip to content

Commit

Permalink
Update vendoring to dep from gdm (influxdata#4314)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and danielnelson committed Jun 19, 2018
1 parent d7c756e commit 1bd41ef
Show file tree
Hide file tree
Showing 18 changed files with 1,245 additions and 121 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ jobs:
<<: [ *defaults, *go-1_10 ]
steps:
- checkout
- restore_cache:
key: vendor-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
- run: 'make deps'
- save_cache:
name: 'vendored deps'
key: vendor-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
paths:
- './vendor'
- persist_to_workspace:
root: '/go/src'
paths:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/telegraf
/telegraf.exe
/telegraf.gz
/vendor
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ which can be found [on our website](http://influxdb.com/community/cla.html)

Assuming you can already build the project, run these in the telegraf directory:

1. `go get github.com/sparrc/gdm`
1. `gdm restore`
1. `GOOS=linux gdm save`
1. `go get -u github.com/golang/dep/cmd/dep`
2. `dep ensure`
3. `dep ensure -add github.com/[dependency]/[new-package]`

## Input Plugins

Expand Down
100 changes: 0 additions & 100 deletions Godeps

This file was deleted.

Loading

0 comments on commit 1bd41ef

Please sign in to comment.