Skip to content

Commit 17fb8b5

Browse files
aledbfclaude
andcommitted
taskfile: rootfs refuses a recipe packages/ has not built
apko takes the newest package across its repositories: a recipe bumped past the apk in packages/ makes the root carry Wolfi's build instead, without a word. That is how a local test run got Wolfi's at-spi2-core 2.62.1, which deletes the systemd user units, and failed every accessibility check (the screen reader, the desktop's labels, orca.service, 38 a11y-label.py core dumps) that the recipe exists to make pass. task rootfs now runs image packages missing first and stops with the recipes to build; the builder builds them before (release:packages), so it is unchanged there. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent bd9d73d commit 17fb8b5

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ falling back from a release that does not come up.
121121
## Recipes (`recipes/`, melange)
122122

123123
- Built with `task build -- <name>`, for **x86-64-v3** (`build/x86-64-v3.env`); a recipe that sets
124-
`CFLAGS` appends to `$CFLAGS`, never replaces it.
124+
`CFLAGS` appends to `$CFLAGS`, never replaces it. **`task rootfs` refuses a `packages/` that
125+
lacks what a recipe makes** (`image packages missing`): apko would take Wolfi's package instead
126+
without a word, and an override's whole point is what Wolfi's lacks. After a pull that bumps
127+
recipes, build each one it names first.
125128
- **A changed recipe takes a new version or epoch**: the builder's cache knows a package by its
126129
apk's name, so the same name is the old build. `go test ./cmd/image` fails a recipe (or its
127130
directory) changed since origin/main that still makes the same apk.

‎Taskfile.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ tasks:
103103
deps: [keygen]
104104
cmds:
105105
- mkdir -p _output
106+
# packages/ holds what every recipe makes before apko reads it: for a recipe whose apk is
107+
# not there, apko would take Wolfi's package instead, without a word - at-spi2-core's
108+
# deletes the systemd user units the screen reader needs. The builder builds them first
109+
# (release:packages); a checkout builds each by hand.
110+
- go run ./cmd/image packages missing > _output/unbuilt.txt
111+
- >-
112+
test ! -s _output/unbuilt.txt
113+
|| { echo "rootfs: packages/ lacks what these recipes make, so apko would take Wolfi's instead; task build -- each of:"; cat _output/unbuilt.txt; exit 1; }
106114
- docker run --rm -v {{.ROOT_DIR}}:/work -w /work {{.APKO}} build-minirootfs --build-arch amd64 image/apko.yaml _output/rootfs.tar
107115
- docker run --rm -v {{.ROOT_DIR}}:/work cgr.dev/chainguard/wolfi-base chown {{.UID}}:{{.UID}} /work/_output/rootfs.tar
108116
# Every package's translations are in the root (its -lang package, which apko installs

0 commit comments

Comments
 (0)