Commit ed1b44f
authored
Add error message for cloning sdk timeout (#395)
Issue [#1642](aws-controllers-k8s/community#1642):
Description of changes:
add message to remind user to clone aws-go-sdk when timeout due to bad network speed
```shell
// original
➜ code-generator git:(main) make build-controller SERVICE=ecr
building ack-generate ... ok.
==== building ecr-controller ====
Copying common custom resource definitions into ecr
Building Kubernetes API objects for ecr
Error: canot clone repository: context deadline exceeded
make: *** [build-controller] Error 1
// with new error message
➜ code-generator git:(main) ✗ make build-controller SERVICE=ecr
building ack-generate ... ok.
==== building ecr-controller ====
Copying common custom resource definitions into ecr
Building Kubernetes API objects for ecr
Error: cannot clone repository: take too long to clone sdk repo, please consider run 'git clone https://github.com/aws/aws-sdk-go' into cache dir /Users/julian/.cache/aws-controllers-k8s/src/aws-sdk-go
make: *** [build-controller] Error 1
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent a676537 commit ed1b44f
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| |||
0 commit comments