mirror of https://github.com/docker/docs.git
Updating instructions for adding dependencies
Instructions for adding a new dependency Signed-off-by: Pradeep Padala <pradeep@containerx.io>
This commit is contained in:
parent
cbb87491e1
commit
53302b32b4
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue