mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-21 16:56:43 +00:00
parent
f711b170e4
commit
30e471b8c6
1 changed files with 11 additions and 11 deletions
|
@ -90,29 +90,29 @@ Fixes #1949
|
||||||
|
|
||||||
### Vendored Dependencies
|
### 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.
|
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.
|
|
||||||
|
You **must use Go Dep** to fetch and manage Hugo's dependencies.
|
||||||
|
|
||||||
### Fetch the Sources From GitHub
|
### Fetch the Sources From GitHub
|
||||||
|
|
||||||
```
|
|
||||||
go get -u github.com/kardianos/govendor
|
|
||||||
govendor get github.com/gohugoio/hugo
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using Git Remotes
|
|
||||||
|
|
||||||
Due to the way Go handles package imports, the best approach for working on a
|
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
|
Hugo fork is to use Git Remotes. Here's a simple walk-through for getting
|
||||||
started:
|
started:
|
||||||
|
|
||||||
1. Fetch the Hugo sources as described above.
|
1. Install Go Dep and get the Hugo source:
|
||||||
|
|
||||||
1. Change to the Hugo source directory:
|
```
|
||||||
|
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 and fetch the dependencies:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd $HOME/go/src/github.com/gohugoio/hugo
|
cd $HOME/go/src/github.com/gohugoio/hugo
|
||||||
|
dep ensure
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create a new branch for your changes (the branch name is arbitrary):
|
1. Create a new branch for your changes (the branch name is arbitrary):
|
||||||
|
|
Loading…
Add table
Reference in a new issue