Add support for hook command-chains
Metadata
Current evaluation
Hook command-chain support shipped in canonical/snapcraft#2850 (41c9fb464); LP #1797468 was later closed as stale after nearly eight years.
Resolution: closed stale
Reason: Maintainer ~mr-cal explicitly closed the nearly eight-year-old report as stale on 2026-07-24. Independently, canonical/snapcraft#2850 at commit 41c9fb464 had already added hook command-chain support.
Evaluated by: mr-cal-bot
No scores available.
Issue body
See https://forum.snapcraft.io/t/6018 for more details. This may require the concept of an "adapter" for hooks, like we have for apps.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Hook command-chain support shipped in canonical/snapcraft#2850 (41c9fb464); LP #1797468 was later closed as stale after nearly eight years. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after nearly eight years. Hook command-chain support had already shipped through canonical/snapcraft#2850 at commit 41c9fb464. | |
| stealth/space-bunny-alpha | — | closed resolved | Hook command-chain support was delivered by merged PR #2850 (commit 41c9fb464), allowing hook command-chain configuration in snapcraft.yaml. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. The feature request for hook command-chain support and hook adapters was abandoned or superseded by newer snapcraft capabilities. No code changes or merges occurred. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
65
Confidence:
95
Support Request:
5
|
close stale | Feature request from 2017 to add hook command-chain support and adapters for snap hooks. Has received zero maintainer engagement or comments in over seven years and appears obsolete for current project versions. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
65
Confidence:
95
Support Request:
15
|
close stale | Feature request to add hook command-chain support using an adapter pattern, originally filed in 2018 with no maintainer interaction or discussion. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
75
Confidence:
90
Support Request:
10
|
close stale | Feature request to add hook command-chain support using an adapter concept. Open for over 7 years with zero maintainer interaction or comments. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#2850
(confidence 94%)
Merged implementation that added command-chain support for hooks, committed as 41c9fb464.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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. | |
| #3296 meta: write stubs for command-chain using hooks when needed | snapcraft | merged | Merged #3296 in commit 95225991f, adding Snapcraft metadata generation of stub hooks for command-chain-based hooks. | |
| #1824255 snapcraft should use command-chain for hooks | snapcraft (launchpad) | closed | Fixed hook environment setup in merged #2897 (bfac28cea) by embedding the generated snap environment in hook wrappers; released in Snapcraft 3.10. | |
| #1586465 Add support for hooks | snapcraft (launchpad) | closed | Hook support was added in snapcore/snapcraft#1026 via commit 01880ee8d, packaging hook files and snapcraft.yaml hook definitions. | |
| #1026 Add support for hooks. | snapcraft | merged | PR #1026 merged as commit 01880ee8d ('core: add support for hooks'), adding hook support: executables in snap/hooks/ are copied into the snap, and parts can install hooks into snap/hooks/. Docs followed in #1042 (10c58b652). | |
| #3659 meta: add support for hooks | snapcraft | merged | Merged snapcraft#3659 via commit 00eed7dc9 (merge 795294fd5) into snapcraft/7.0, adding hooks support in snapcraft.yaml for CRAFT-808. | |
| #921 Add support for hooks. | snapcraft | closed | PR #921 (declarative `hooks:` with generated hook scripts) was closed unmerged after redesign discussion with snapd's niemeyer; hook support instead landed in #1026 (commit 01880ee8d) with docs in #1042. |