mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-05-06 05:42:57 +08:00
Get rid of most references to GOPATH
Kubernetes-commit: 10c32b3e2f4345dab582270b1a202dcd92dabd34
This commit is contained in:
parent
7e70e35059
commit
28c803d620
23
README.md
23
README.md
@ -33,28 +33,11 @@ explained [here](docs/controller-client-go.md).
|
|||||||
|
|
||||||
## Fetch sample-controller and its dependencies
|
## Fetch sample-controller and its dependencies
|
||||||
|
|
||||||
Like the rest of Kubernetes, sample-controller has used
|
Issue the following commands --- starting in whatever working directory you
|
||||||
[godep](https://github.com/tools/godep) and `$GOPATH` for years and is
|
like.
|
||||||
now adopting go 1.11 modules. There are thus two alternative ways to
|
|
||||||
go about fetching this demo and its dependencies.
|
|
||||||
|
|
||||||
### Fetch with godep
|
|
||||||
|
|
||||||
When NOT using go 1.11 modules, you can use the following commands.
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go get -d k8s.io/sample-controller
|
git clone https://github.com/kubernetes/sample-controller
|
||||||
cd $GOPATH/src/k8s.io/sample-controller
|
|
||||||
godep restore
|
|
||||||
```
|
|
||||||
|
|
||||||
### When using go 1.11 modules
|
|
||||||
|
|
||||||
When using go 1.11 modules (`GO111MODULE=on`), issue the following
|
|
||||||
commands --- starting in whatever working directory you like.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git clone https://github.com/kubernetes/sample-controller.git
|
|
||||||
cd sample-controller
|
cd sample-controller
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user