Commit 96f03ac
authored
Drop vgopath from API code generation (#1479)
Use upstream `k8s.io/code-generator` (kube_codegen.sh) directly instead
of synthesizing a virtual GOPATH via vgopath. The codegen tools have
been module-aware for a while, so the GOPATH-style layout is no longer
needed.
- Remove the VGOPATH variable, install target, and version pin from
the Makefile, and drop vgopath as a prerequisite of `generate` and
`proto`.
- Drop the mktemp + vgopath -o materialization and GOROOT/GOPATH
exports from hack/update-codegen.sh; only `go mod download` remains
so `go list -m` can resolve k8s.io/code-generator.
Generated output (`api/`, `client-go/`, `internal/apis/`, `iri/`) is
byte-identical to before.
Signed-off-by: Andreas Fritzler <andreas.fritzler@sap.com>1 parent ddfd5b3 commit 96f03ac
2 files changed
Lines changed: 3 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
346 | 345 | | |
347 | 346 | | |
348 | 347 | | |
349 | | - | |
350 | 348 | | |
351 | 349 | | |
352 | 350 | | |
| |||
358 | 356 | | |
359 | 357 | | |
360 | 358 | | |
361 | | - | |
362 | 359 | | |
363 | 360 | | |
364 | 361 | | |
| |||
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | 387 | | |
397 | 388 | | |
398 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 17 | + | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
| |||
0 commit comments