Skip to content

Build: drop cached packages and the dist that no longer match the recipe pins - #24

Merged
bdbarnett merged 1 commit into
mainfrom
stale-dist-port
Oct 20, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
stale-dist-port

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

p4a keeps older installed package versions beside newer ones and reuses an existing dist, so moving a recipe pin could still package the old version. The build now prunes whatever no longer matches p4a_recipes/ before it starts, and a p4a hook fails it if the dist still differs. The build also lists only the APK it just made. This is the same fix android-runner has.

Checked with two real builds: with palettes pinned at 0.0.13 the APK carried 0.0.13 only; moving the pin to 0.0.14 and rebuilding pruned the old package and dist, and the new APK carried 0.0.14 only. shellcheck is clean.

…ipe pins

p4a keeps older installed package versions beside newer ones and reuses an
existing dist, so moving a recipe pin could still package the old version.
build_android.sh now prunes mismatched packages and the dist before building,
a p4a hook refuses a dist that still differs from the pins, and the build
lists only the APK it just made. Same fix as android-runner.
@bdbarnett
bdbarnett merged commit e6b0151 into main Oct 20, 2026
1 check passed
@bdbarnett
bdbarnett deleted the stale-dist-port branch October 20, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant