From c3ec1745c045a8bd3a562261e44bbd3526988d8a Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Thu, 31 Mar 2016 10:46:02 -0700 Subject: [PATCH] docs: No need to change GOPATH to use vendored code Now that we are using "native" Go vendoring, there is no need to manipulate GOPATH. Fixes #1586 Signed-off-by: Aaron Lehmann --- docs/building.md | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/docs/building.md b/docs/building.md index 88eeca36..126a455a 100644 --- a/docs/building.md +++ b/docs/building.md @@ -85,7 +85,7 @@ Please install the following into `GOPATH` for it to work: Once these commands are available in the `GOPATH`, run `make` to get a full build: - $ GOPATH=`godep path`:$GOPATH make + $ make + clean + fmt + vet @@ -120,33 +120,6 @@ the registry binary generated in the "./bin" directory: $ ./bin/registry -version ./bin/registry github.com/docker/distribution v2.0.0-alpha.2-80-g16d8b2c.m -### Developing - -The above approaches are helpful for small experimentation. If more complex -tasks are at hand, it is recommended to employ the full power of `godep`. - -The Makefile is designed to have its `GOPATH` defined externally. This allows -one to experiment with various development environment setups. This is -primarily useful when testing upstream bugfixes, by modifying local code. This -can be demonstrated using `godep` to migrate the `GOPATH` to use the specified -dependencies. The `GOPATH` can be migrated to the current package versions -declared in `Godeps` with the following command: - - godep restore - -> **WARNING:** This command will checkout versions of the code specified in -> Godeps/Godeps.json, modifying the contents of `GOPATH`. If this is -> undesired, it is recommended to create a workspace devoted to work on the -> _Distribution_ project. - -With a successful run of the above command, one can now use `make` without -specifying the `GOPATH`: - - make - -If that is successful, standard `go` commands, such as `go test` should work, -per package, without issue. - ### Optional build tags Optional [build tags](http://golang.org/pkg/go/build/) can be provided using