diff options
author | 2019-07-25 14:55:26 -0700 | |
---|---|---|
committer | 2019-07-25 21:55:26 +0000 | |
commit | e5b44f4bd3afcafca748b2b13d97dd8874b55a05 (patch) | |
tree | cebb111613607401b62cca22b4def89c75c63dff | |
parent | 4f268ad801e5a8630d628659a2d265fced3906df (diff) | |
download | coredns-e5b44f4bd3afcafca748b2b13d97dd8874b55a05.tar.gz coredns-e5b44f4bd3afcafca748b2b13d97dd8874b55a05.tar.zst coredns-e5b44f4bd3afcafca748b2b13d97dd8874b55a05.zip |
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: Yong Tang <yong.tang.github@outlook.com>
* Small fix for reveiw comment
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rw-r--r-- | CONTRIBUTING.md | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 18bd4a62b..7c2adc709 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,25 +44,20 @@ faster. ## Updating Dependencies -We use Golang's [`dep`](https://github.com/golang/dep) as the tool to manage vendor dependencies. -The tool could be obtained through: +We use [Go Modules](https://github.com/golang/go/wiki/Modules) as the tool to manage vendor dependencies. +Use the following to update the version of all dependencies ```sh -$ go get -u github.com/golang/dep/cmd/dep -``` - -Use the following to update the locked versions of all dependencies -```sh -$ make dep-ensure +$ go get -u ``` After the dependencies have been updated or added, you might run the following to -prune vendored packages: +cleanup the go module files: ```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 |