You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ that aren't part of the Kubernetes core.
9
9
10
10
The code must be checked out as a subdirectory of `k8s.io`, and not `github.com`.
11
11
12
-
```sh
12
+
```shell
13
13
mkdir -p $GOPATH/src/k8s.io
14
14
cd$GOPATH/src/k8s.io
15
15
# Replace "$YOUR_GITHUB_USERNAME" below with your github username
@@ -24,14 +24,38 @@ contrib contains multiple tiny projects, each with their own dependencies. Each
24
24
in contrib/ has it's own Godeps.json. For example the Godeps.json for Ingress
25
25
is Ingress/Godeps/Godeps.json. This means that godeps commands like `godep restore`
26
26
or `godep test` work in the root directory. Theys should be run from inside the
27
-
subproject directory you want to test
27
+
subproject directory you want to test.
28
+
29
+
## Prerequisites for updating Godeps
30
+
31
+
Since we vendor godeps through `/vendor` vs the old style `Godeps/_workspace`, you either need a more recent install of go and godeps, or you need to set `GO15VENDOREXPERIMENT=1`. Eg:
32
+
```shell
33
+
$ godep version
34
+
godep v74 (linux/amd64/go1.6.1)
35
+
$ go version
36
+
go version go1.6.1 linux/amd64
37
+
$ godep save ./...
38
+
```
39
+
40
+
Will automatically save godeps to `vendor/` instead of `_workspace/`.
41
+
If you have an older version of go, you must run:
42
+
```shell
43
+
$ GO15VENDOREXPERIMENT=1 godep save ./...
44
+
```
45
+
46
+
If you have an older version of godep, you must update it:
47
+
```shell
48
+
$ go get github.com/tools/godep
49
+
$ cd$GOPATH/src/github.com/tools/godep
50
+
$ go build -o godep *.go
51
+
```
28
52
29
53
## Updating Godeps
30
54
31
55
The most common dep to update is obviously going to be kuberetes proper. Updating
32
56
kubernetes and it's dependancies in the Ingress subproject for example can be done
33
-
as follows:
34
-
```
57
+
as follows (the example assumes you Kubernetes repo is rooted at `$GOPATH/src/github.com/kubernetes`, `s/github.com\/kubernetes/k8s.io/` as required):
Other deps are similar, although if the dep you wish to update is included from
48
72
kubernetes we probably want to stay in sync using the above method. If the dep is not in kubernetes proper something like the following should get you a nice clean result:
0 commit comments