Commit 4fa150a
pkg: add update-hashes subcommand; pkg build reads build-yml from hash file
update-hashes:
- New cobra subcommand 'linuxkit pkg update-hashes --hash-dir <dir> [path[:build-yml]]...'
- Parses all package specs (with explicit build-yml for versioned packages)
- Builds dep graph from @lkt:pkg:/pkgs: build args filtered by Dockerfile ARGs
- Topological sort (Kahn's algorithm) ensures deps processed before consumers
- Calls NewFromConfig per package in topo order; writes HashManifest with
tag, build-yml, and deps: [{path, tag}] populated
- --strict-deps flag errors when a dep package is missing from the list
pkg build:
- When --hash-dir is set and --build-yml was not explicitly provided,
reads effective build-yml from the package's hash file automatically;
simplifies EVE Makefile (no per-package --build-yml needed in eve-% rule)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>1 parent af1bdbd commit 4fa150a
4 files changed
Lines changed: 381 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
76 | 104 | | |
77 | 105 | | |
78 | 106 | | |
| |||
300 | 328 | | |
301 | 329 | | |
302 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
303 | 338 | | |
304 | 339 | | |
305 | 340 | | |
| |||
349 | 384 | | |
350 | 385 | | |
351 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
0 commit comments