diff options
Diffstat (limited to 'recipes-containers/docker/files/context-use-golang.org-x-net-pkg-until-we-move-to-go.patch')
-rw-r--r-- | recipes-containers/docker/files/context-use-golang.org-x-net-pkg-until-we-move-to-go.patch | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/recipes-containers/docker/files/context-use-golang.org-x-net-pkg-until-we-move-to-go.patch b/recipes-containers/docker/files/context-use-golang.org-x-net-pkg-until-we-move-to-go.patch new file mode 100644 index 00000000..240b7441 --- /dev/null +++ b/recipes-containers/docker/files/context-use-golang.org-x-net-pkg-until-we-move-to-go.patch | |||
@@ -0,0 +1,116 @@ | |||
1 | From de69555afaf05efcdeea7b7c20c6f7b12f3e1bac Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
3 | Date: Fri, 20 Jan 2017 11:58:44 -0500 | ||
4 | Subject: [PATCH] context: use golang.org/x/net pkg until we move to go 1.7 | ||
5 | |||
6 | In go 1.6 the context.go is not yet integrated and as such we will get | ||
7 | build errors like: | ||
8 | |||
9 | walwrap.go:4:2: cannot find package "context" in any of: | ||
10 | ... | ||
11 | |||
12 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
13 | --- | ||
14 | client/README.md | 2 +- | ||
15 | client/client.go | 2 +- | ||
16 | daemon/info_unix.go | 2 +- | ||
17 | integration-cli/docker_api_attach_test.go | 2 +- | ||
18 | integration-cli/docker_cli_save_load_unix_test.go | 2 +- | ||
19 | vendor/github.com/docker/swarmkit/manager/logbroker/subscription.go | 2 +- | ||
20 | vendor/github.com/docker/swarmkit/manager/state/raft/storage/walwrap.go | 2 +- | ||
21 | 7 files changed, 7 insertions(+), 7 deletions(-) | ||
22 | |||
23 | diff --git a/client/README.md b/client/README.md | ||
24 | index 059dfb3..9de54aa 100644 | ||
25 | --- a/client/README.md | ||
26 | +++ b/client/README.md | ||
27 | @@ -8,7 +8,7 @@ For example, to list running containers (the equivalent of `docker ps`): | ||
28 | package main | ||
29 | |||
30 | import ( | ||
31 | - "context" | ||
32 | + "golang.org/x/net/context" | ||
33 | "fmt" | ||
34 | |||
35 | "github.com/docker/docker/api/types" | ||
36 | diff --git a/client/client.go b/client/client.go | ||
37 | index a9bdab6..95933af 100644 | ||
38 | --- a/client/client.go | ||
39 | +++ b/client/client.go | ||
40 | @@ -19,7 +19,7 @@ For example, to list running containers (the equivalent of "docker ps"): | ||
41 | package main | ||
42 | |||
43 | import ( | ||
44 | - "context" | ||
45 | + "golang.org/x/net/context" | ||
46 | "fmt" | ||
47 | |||
48 | "github.com/docker/docker/api/types" | ||
49 | diff --git a/daemon/info_unix.go b/daemon/info_unix.go | ||
50 | index 9c41c0e..57f8a7b 100644 | ||
51 | --- a/daemon/info_unix.go | ||
52 | +++ b/daemon/info_unix.go | ||
53 | @@ -3,7 +3,7 @@ | ||
54 | package daemon | ||
55 | |||
56 | import ( | ||
57 | - "context" | ||
58 | + "golang.org/x/net/context" | ||
59 | "os/exec" | ||
60 | "strings" | ||
61 | |||
62 | diff --git a/integration-cli/docker_api_attach_test.go b/integration-cli/docker_api_attach_test.go | ||
63 | index d43bf3a..e5802a7 100644 | ||
64 | --- a/integration-cli/docker_api_attach_test.go | ||
65 | +++ b/integration-cli/docker_api_attach_test.go | ||
66 | @@ -3,7 +3,7 @@ package main | ||
67 | import ( | ||
68 | "bufio" | ||
69 | "bytes" | ||
70 | - "context" | ||
71 | + "golang.org/x/net/context" | ||
72 | "io" | ||
73 | "net" | ||
74 | "net/http" | ||
75 | diff --git a/integration-cli/docker_cli_save_load_unix_test.go b/integration-cli/docker_cli_save_load_unix_test.go | ||
76 | index 22445e5..d0afc8c 100644 | ||
77 | --- a/integration-cli/docker_cli_save_load_unix_test.go | ||
78 | +++ b/integration-cli/docker_cli_save_load_unix_test.go | ||
79 | @@ -3,7 +3,7 @@ | ||
80 | package main | ||
81 | |||
82 | import ( | ||
83 | - "context" | ||
84 | + "golang.org/x/net/context" | ||
85 | "fmt" | ||
86 | "io/ioutil" | ||
87 | "os" | ||
88 | diff --git a/vendor/github.com/docker/swarmkit/manager/logbroker/subscription.go b/vendor/github.com/docker/swarmkit/manager/logbroker/subscription.go | ||
89 | index 6b3295a..cbfcf7e 100644 | ||
90 | --- a/vendor/github.com/docker/swarmkit/manager/logbroker/subscription.go | ||
91 | +++ b/vendor/github.com/docker/swarmkit/manager/logbroker/subscription.go | ||
92 | @@ -1,7 +1,7 @@ | ||
93 | package logbroker | ||
94 | |||
95 | import ( | ||
96 | - "context" | ||
97 | + "golang.org/x/net/context" | ||
98 | "fmt" | ||
99 | "strings" | ||
100 | "sync" | ||
101 | diff --git a/vendor/github.com/docker/swarmkit/manager/state/raft/storage/walwrap.go b/vendor/github.com/docker/swarmkit/manager/state/raft/storage/walwrap.go | ||
102 | index 5a6c71a..efe5921 100644 | ||
103 | --- a/vendor/github.com/docker/swarmkit/manager/state/raft/storage/walwrap.go | ||
104 | +++ b/vendor/github.com/docker/swarmkit/manager/state/raft/storage/walwrap.go | ||
105 | @@ -1,7 +1,7 @@ | ||
106 | package storage | ||
107 | |||
108 | import ( | ||
109 | - "context" | ||
110 | + "golang.org/x/net/context" | ||
111 | "io" | ||
112 | "io/ioutil" | ||
113 | "os" | ||
114 | -- | ||
115 | 2.7.4 | ||
116 | |||