post-stop-command not defined in snapcraft schema
Metadata
Current evaluation
Added app-level post-stop-command support via merged snapcraft PR #1109 (commit 392a310f2); field now exists in schema/snapcraft.json and is emitted in snap.yaml apps metadata, and the Launchpad bug was closed.
Resolution: closed resolved
Reason: Maintainer @sergiusens pointed to snapcraft#1109, which was merged as commit 392a310f2 ("meta: allow post-stop-command for an app entry in apps"). schema/snapcraft.json and tests/unit/models/test_projects.py at HEAD now define and assert project.apps["app1"].post_stop_command, so the schema gap reported is fixed.
Evaluated by: mr-cal-bot
No scores available.
Issue body
While post-stop-command is defined in snapd (https://github.com/snapcore/snapd/wiki/Snap-format)
"""
# Optional command to run after daemon stops.
post-stop-command: <command line>
"""
It is not defined in the snapcraft schema (https://github.com/snapcore/snapcraft/blob/master/schema/snapcraft.yaml)
Thus, custom snaps are unable to use that feature unless the definition is added.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Added app-level post-stop-command support via merged snapcraft PR #1109 (commit 392a310f2); field now exists in schema/snapcraft.json and is emitted in snap.yaml apps metadata, and the Launchpad bug was closed. | |
| stealth/space-bunny-alpha | — | closed resolved | Added app-level post-stop-command schema support via merged canonical/snapcraft#1109 (commit 392a310f2). | |
| stealth/space-bunny-alpha | — | closed resolved | Added post-stop-command support to app entries in Snapcraft’s schema via merged PR #1109 (commit 392a310f2). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The missing post-stop-command definition in the snapcraft schema was not addressed, leaving the request abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or resolution. The missing post-stop-command schema definition was abandoned and never implemented. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The issue requesting the post-stop-command definition in the snapcraft schema was closed without resolution due to inactivity. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without comments or resolution, indicating the request to add post-stop-command to the snapcraft schema was abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#1109
(confidence 97%)
Merged PR that added post-stop-command to the apps schema/model; referenced by the maintainer's closing comment.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1683422 post-stop-command not wrapped | snapcraft (launchpad) | open | Reported $SNAP install failure appears resolved: Snapcraft 8.5.1 (#4999) now accepts $ in post-stop-command, though the field is still emitted verbatim. | |
| #1109 meta: allow `post-stop-command` for an app entry in `apps`. | snapcraft | merged | Merged PR #1109 added per-app post-stop-command support in apps metadata, resolving Launchpad #1662240 in commit 392a310f2. | |
| #2341 schema, meta: support app command-chain | snapcraft | merged | PR #2341 merged into master as commit 194989b4e, adding snapcraft.yaml schema and snap metadata (meta/snap_yaml.py) support for per-app command-chain, resolving LP bug #1790978. | |
| #1790978 Add support for app command-chains | snapcraft (launchpad) | closed | App-level command-chain support was merged in snapcraft PR #2341 (commit 194989b4e), adding schema and snap metadata handling and resolving LP #1790978. |