Commit 03ba59b
committed
link ack-runtime with code-generator via go.mod
Even though Go code in the code-generator doesn't actually import the
ack-runtime library (github.com/aws-controllers-k8s/runtime), the
templates contained in the code-generator *do* produce Go code that
imports the ack-runtime. So, in order to fake out a Go module dependency
between the code-generator and the ack-runtime, I've added a simple test
file in pkg/generate/ack/runtime_test.go that effectively couples the
ack-runtime library at v0.0.3.
When we make changes in the ack-runtime that break backwards
compatibility, we can now update the SemVer in the ack-runtime repo and
the commits to the code-generator that change the produced Go code that
follows the new interfaces in ack-runtime can update the depended-on
ack-runtime version in the code-generator repository's go.mod file.1 parent fe3ed9d commit 03ba59b
3 files changed
+371
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
0 commit comments