Repository navigation
fix(update): report upstream Flatpak permission drift - #970
Merged
Merged
Conversation
The pin sweep rewrites only the download, so a new finish-arg or helper module in upstream's Flatpak manifest never reaches the package. Report that difference as an issue instead of copying it. Co-authored-by: Cursor <[email protected]>
The drift step already exits 0 under --alert, so a failure there means the script itself broke. Without continue-on-error that failure skipped the final gate, and a held-back or unresolved pin would no longer turn the run red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
|
Pushed one commit on top of yours: 3aca28c.
|
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The pin sweep rewrites the download and leaves
finish-argsand modules untouched. That is how WordCraft's Flatpak gained CUPS printing upstream while this package kept shipping an empty printer list. A package can now name the upstream Flatpak manifest. The update sweep fetches it from the default branch and opens an issue when the finish-args, the module names, or a helper module's archive URL differ.Nothing is copied and nothing is merged. Closing the issue is a pull request: grant what a feature needs, or record the omission under
upstream:with a comment saying why. A new permission is not always enough on its own. The print dialog neededlpstatandlpas well as--socket=cups, and those tools are a module, so the report lists both.Packaging
scripts/check-upstream-manifests.mjsdoes the comparison.update-check.ymlruns it with--alertafter the pin refresh, through the existingci-alertissues (upstream-manifest/<app-id>), refreshed each run and closed when the manifests agree. A drift does not fail the pin job.WordCraft (
ai.storyteller.wordcraft) is the first package to opt in, againstpackaging/linux/flatpak/ai.storyteller.wordcraft.yml. Two upstream grants stay omitted on purpose:--share=network, because update checks and--controlstay opt-in--filesystem=xdg-data/ArtCraft/versions:ro, because this package does not ship that launcherThe app's own module is not part of the archive comparison. Upstream builds it from a directory; this package unpacks the release tarball, whose URL moves on every release. A helper that is an archive on both sides, such as
cups-client, is compared.Sandbox
No permission change in this pull request. The next sweep will report what WordCraft's manifest is still missing. Checked against the default branch just now:
--socket=cups--system-talk-name=org.freedesktop.Avahi--filesystem=~/.cups:rocups-clientThe two accepted omissions above were not reported. #969 is the pull request that adds those four, which makes this report go quiet.
Tested
tests/test_upstream_manifest.sh: a new permission and a new module are reported, an accepted permission is not, a helper archive URL change is reported, and the extra-data app module's URL is not compared with upstream's directory build.scripts/audit-descriptor.mjsrejects anupstream.manifestpath that leaves the upstream repository. The descriptor audit and this test passed.test_gen_site.shfailed in this shallow checkout before the site deps were installed; it looks for a rendered install count and does not touch this check.Flathub
Not a new app.
Made with Cursor