Commit e5b44f4b authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

Update CONTRIBUTING.md for dependency update methods (go dep -> go mod) (#3048)

* Update CONTRIBUTING.md for dependency update methods (go dep -> go mod)
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Small fix for reveiw comment
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 4f268ad8
...@@ -44,25 +44,20 @@ faster. ...@@ -44,25 +44,20 @@ faster.
## Updating Dependencies ## Updating Dependencies
We use Golang's [`dep`](https://github.com/golang/dep) as the tool to manage vendor dependencies. We use [Go Modules](https://github.com/golang/go/wiki/Modules) as the tool to manage vendor dependencies.
The tool could be obtained through:
Use the following to update the version of all dependencies
```sh ```sh
$ go get -u github.com/golang/dep/cmd/dep $ go get -u
```
Use the following to update the locked versions of all dependencies
```sh
$ make dep-ensure
``` ```
After the dependencies have been updated or added, you might run the following to After the dependencies have been updated or added, you might run the following to
prune vendored packages: cleanup the go module files:
```sh ```sh
$ dep prune $ go mod tidy
``` ```
Please refer to Golang's [`dep`](https://github.com/golang/dep) for more details. Please refer to [Go Modules](https://github.com/golang/go/wiki/Modules) for more details.
# Thank You # Thank You
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment