Commit Graph

3 Commits

Author SHA1 Message Date
James Rich
66cdd0abc5 feat(verify-flatpak): add --rebuild-only for tight iteration loops
After a flatpak-builder failure mid-build, the slow path was running
the full pipeline again: regenerate flatpak-sources.json, re-clone
vid's repo, rsync the entire Meshtastic-Android tree. The fix you
want to test is usually a one-line YAML tweak.

--rebuild-only keeps the existing workspace as-is, refreshes only
the overlay yaml and flatpak-sources.json (the two iteration knobs),
and re-runs flatpak-builder. Implies --skip-regen.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:18:32 -05:00
James Rich
18c547ba29 fix(flatpak-ops): capture build-logic bootstrap via init script
PR #5599's BuildOperationListener attached too late: build-logic's own
plugin resolutions (kotlin-dsl plugin marker, detekt, etc.) happen
before the root project applies meshtastic.flatpak-ops, so those URLs
never reached the manifest. Vid's flatpak-builder run then failed with
'Plugin [org.gradle.kotlin.kotlin-dsl:6.5.7] was not found' under
--offline Gradle.

Fix: move listener registration into a Gradle init script
(gradle/init-scripts/flatpak-ops.init.gradle.kts) passed via -I.
The init script fires before any project or plugin resolution, so
build-logic bootstrap downloads are captured. The flatpak-ops plugin
now reads the shared URL set from gradle.extensions; if the init
script isn't loaded, it falls back to a local listener and warns.

CI workflows + scripts/verify-flatpak/verify.sh updated to pass
-I gradle/init-scripts/flatpak-ops.init.gradle.kts.

Also expand verify.sh to optionally run a full flatpak-builder build
(not just --download-only), with macOS refusing full-build mode
because nested bwrap fails under Docker Desktop's seccomp. Adds
--download-only and --skip-regen flags.

Verified on macOS via --download-only: manifest grew to 2744 entries
and now contains org.gradle.kotlin.kotlin-dsl.gradle.plugin (the
artifact that broke vid's CI). Full-build verification pending on
Linux.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 09:53:23 -05:00
James Rich
2fa11507c5 refactor(flatpak): retire heuristic cache scanner, adopt build-ops capture (#5599)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 06:24:25 -05:00