meta: add support for hooks
Metadata
Current evaluation
Merged snapcraft#3659 via commit 00eed7dc9 (merge 795294fd5) into snapcraft/7.0, adding hooks support in snapcraft.yaml for CRAFT-808.
Resolution: closed resolved
Reason: PR #3659 was approved and merged as commit 00eed7dc9, with merge commit 795294fd5. It implemented hooks support in snapcraft.yaml and achieved 100% diff coverage.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [X] Have you successfully run `./runtests.sh static`?
- [X] Have you successfully run `./runtests.sh tests/unit`?
-----
Support for `hooks` in `snapcraft.yaml`.
CRAFT-808
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged snapcraft#3659 via commit 00eed7dc9 (merge 795294fd5) into snapcraft/7.0, adding hooks support in snapcraft.yaml for CRAFT-808. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3659 as commit 00eed7dc9 into snapcraft/7.0, adding support for hooks in snapcraft.yaml (CRAFT-808) with 100% diff coverage. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into snapcraft/7.0 branch after reviewer approval and passing CI checks. Adds support for hooks in snapcraft.yaml, modifying four files with 116 additions and 24 deletions while maintaining 100% diff coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into snapcraft/7.0, adding hooks support to snapcraft.yaml. The maintainer-authored change increased coverage by 0.05% with 100% diff coverage, resolving CRAFT-808. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#2850
(confidence 85%)
Earlier hook command-chain support built on the metadata functionality.
-
Related To:
snapcraft#1026
(confidence 80%)
Earlier core implementation that established hook support.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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). | |
| #3565 schema: add environment support for hooks (CRAFT-424) | snapcraft | merged | Merged PR snapcore/snapcraft#3565, adding CRAFT-424 hook environment support, shared schema definitions, snap metadata processing, and unit/spread tests. | |
| #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. | |
| #3837 fix: hooks: process generated hooks | snapcraft | merged | Merged as commit c77e3a07a (CRAFT-1159): core22 now includes lifecycle-generated hooks in the snap via meta/hooks wrappers, with snap/hooks taking priority; adds spread tests for core18/20/22. | |
| #5463 docs: migrate 'hooks' | snapcraft | merged | Merged the snap hooks documentation migration from snapcraft.io to Read the Docs in commit 6f4c66e59. | |
| #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. | |
| #1980089 Compiled snap hooks not executed when packaging with Snapcraft 7 | snapcraft (launchpad) | closed | Compiled snap hooks are supported again by merged PR snapcore/snapcraft#3837 (commit c77e3a07a), which processes generated hooks and restores the expected meta/hooks entries. | |
| #3657 meta: support plugs | snapcraft | merged | Merged PR #3657 into snapcraft/7.0 via b28e65257, adding metadata support for plugs and ContentPlugs (implementation 6512b7cdd; CRAFT-816). | |
| #3552 meta: support for metadata links (CRAFT-370) | snapcraft | merged | Merged CRAFT-370 support for metadata links in snap.yaml via #3552, merge commit 6d6a40749. |