Updating instructions for adding dependencies

Instructions for adding a new dependency

Signed-off-by: Pradeep Padala <pradeep@containerx.io>
This commit is contained in:
Pradeep Padala 2016-04-18 17:48:47 -07:00
parent cbb87491e1
commit 53302b32b4
1 changed files with 17 additions and 2 deletions

View File

@ -148,10 +148,25 @@ Scrub build results:
make lint
make dco
### Save and restore dependencies
### Restore, update and save dependencies
When you make a fresh copy of the repo, all the dependecies are in `vendor/` directory for the builds to work. If you want to update the dependencies
#### Restore the dependencies
make dep-restore
This uses godep to restores all the dependencies to your `$GOPATH`. Note that this changes the packages in your `$GOPATH`
#### Add one ore more dependencies
go get -u <new dependency>
#### Save the dependencies to `vendor/`
make dep-save
make dep-restore
4. Verify the changes in your repo, commit and submit a pull request
## Integration Tests