mirror of https://github.com/docker/docs.git
How to upgrade a vendor package (#1606)
* add info in the FAQ the official way to update third party vendor packages Signed-off-by: Krasi Georgiev <krasi@vip-consult.solutions>
This commit is contained in:
parent
61dff0f8b7
commit
e847503e76
|
@ -45,7 +45,7 @@ Set your local repo to track changes upstream, on the `docker` repository.
|
|||
```
|
||||
|
||||
2. Add a remote called `upstream` that points to `docker/docker`.
|
||||
|
||||
|
||||
```
|
||||
$ git remote add upstream https://github.com/docker/docker.git
|
||||
```
|
||||
|
@ -136,3 +136,18 @@ force the previous change to be overwritten.
|
|||
```
|
||||
$ git push -f origin my-keen-feature
|
||||
```
|
||||
|
||||
## How do I update vendor package from upstream ?
|
||||
|
||||
1. If you are not using the development container, download the
|
||||
[vndr](https://github.com/LK4D4/vndr) vendoring tool. The `vndr`
|
||||
tool is included in the development container.
|
||||
|
||||
2. Edit the package version in `vendor.conf` to use the package you want to use, such as
|
||||
`github.com/gorilla/mux`.
|
||||
|
||||
3. Run `vndr <package-name>`. For example:
|
||||
|
||||
```bash
|
||||
vndr github.com/gorilla/mux
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue