Repository navigation
Commit 8afbfe5
committed
build(chip-router): make the image build hermetic with a cmd/chip-router module
The Dockerfile deleted go.mod's replace and ran 'go mod tidy' at build time.
Tidy resolves packages missing from go.mod at latest and shifts direct deps
(x/sync 0.22->0.23, x/net, x/sys, x/text, x/crypto, genproto, otel 1.46->1.47 in a
scratch simulation), so an image built from a pinned commit was not reproducible,
and an upstream release needing a newer go than the pinned builder broke the build
with no change in this repo.
The router binary imports neither the framework module nor the deploy-side library,
so give cmd/chip-router its own module (go.mod/go.sum checked in; versions equal to
what the parent resolved) and build from those pins only: go mod download from
go.mod+go.sum, then go build -mod=readonly. Same pattern as framework/leak/cmd.
The library module's go.mod no longer requires the binary's dependencies.1 parent adaba38 commit 8afbfe5
6 files changed
Lines changed: 97 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | | - | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | 12 | | |
19 | 13 | | |
20 | 14 | | |
| |||
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
| 40 | + | |
46 | 41 | | |
47 | 42 | | |
48 | 43 | | |
| |||
61 | 56 | | |
62 | 57 | | |
63 | 58 | | |
| 59 | + | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
| |||
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
| 76 | + | |
80 | 77 | | |
81 | 78 | | |
82 | | - | |
83 | | - | |
84 | 79 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments