diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-10-21 16:34:02 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-10-21 19:30:23 +0200 |
commit | 30e471b8c66f43b2505ba4a303b5cacb4a5f3af3 (patch) | |
tree | ba87ced2d1ec95db5ed1af381efb6ce675ac84b2 /CONTRIBUTING.md | |
parent | f711b170e4bb286ffa544dfdb48cff4e8f74497f (diff) | |
download | hugo-30e471b8c66f43b2505ba4a303b5cacb4a5f3af3.tar.gz hugo-30e471b8c66f43b2505ba4a303b5cacb4a5f3af3.zip |
Update CONTRIBUTING to reflect Go Dep
Closes #3988
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1ef37a69d..53a806a88 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -90,29 +90,29 @@ Fixes #1949 ### Vendored Dependencies -Hugo uses [govendor](https://github.com/kardianos/govendor) to vendor dependencies, but we don't commit the vendored packages themselves to the Hugo git repository. +Hugo uses [Go Dep](https://github.com/golang/dep) to vendor dependencies, but we don't commit the vendored packages themselves to the Hugo git repository. Therefore, a simple `go get` is not supported since `go get` is not vendor-aware. -You **must use govendor** to fetch and manage Hugo's dependencies. -### Fetch the Sources From GitHub +You **must use Go Dep** to fetch and manage Hugo's dependencies. -``` -go get -u github.com/kardianos/govendor -govendor get github.com/gohugoio/hugo -``` - -### Using Git Remotes +### Fetch the Sources From GitHub Due to the way Go handles package imports, the best approach for working on a Hugo fork is to use Git Remotes. Here's a simple walk-through for getting started: -1. Fetch the Hugo sources as described above. +1. Install Go Dep and get the Hugo source: + + ``` + go get -u -v github.com/golang/dep/cmd/dep + go get -u -v -d github.com/gohugoio/hugo + ``` -1. Change to the Hugo source directory: +1. Change to the Hugo source directory and fetch the dependencies: ``` cd $HOME/go/src/github.com/gohugoio/hugo + dep ensure ``` 1. Create a new branch for your changes (the branch name is arbitrary): |