Removing a hook script and building, script still present
Metadata
Current evaluation
Snapcraft retains a deleted snap/hooks script in the rebuilt snap because the stale copy in prime/ is never removed; a full clean is required. Open ~6.5 years with zero comments, no labels, and no maintainer response.
Suggested action: needs triage
Reason: The report is a legitimate bug (stale prime/ artifacts not cleaned on rebuild), but it has had zero maintainer interaction for ~6.5 years, no labels, and no assignee, so it has never been triaged. A near-identical report exists (snapcraft#1916333, 'removing a hook from snap/hooks does not remove it from prime/snap/hooks'), suggesting the same root cause in prime-directory cleanup, but no commit or PR evidence was available to confirm a fix, so it should be triaged rather than auto-closed.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
24.0
Staleness:
90
Complexity:
40
Confidence:
70
Support Request:
10
|
needs triage | Snapcraft retains a deleted snap/hooks script in the rebuilt snap because the stale copy in prime/ is never removed; a full clean is required. Open ~6.5 years with zero comments, no labels, and no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
15
|
close stale | Reports snapcraft retaining deleted hook scripts in rebuilt snaps, requiring a clean build to fix. Open for over 6 years with no maintainer response or comments. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
35
Confidence:
85
Support Request:
5
|
close stale | snapcraft fails to remove deleted hook scripts during incremental builds, requiring a full clean build to reflect changes. Issue remains unlabelled and inactive for over six years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
25
Confidence:
85
Support Request:
10
|
close stale | Rebuilding a snap after deleting a hook script leaves the old script in the package. Requires manual clean. No maintainer response in over 6 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
15
|
close stale | Snapcraft retains deleted hook scripts in rebuilt snaps without requiring a clean build. The issue has seen no maintainer engagement or comments in over six years. |
Update history
No update history recorded yet.
Related work
-
Duplicate Of:
snapcraft#1916333
(confidence 75%)
Same symptom: deleting a hook from snap/hooks/ leaves the stale copy in prime/snap/hooks/ so it still ships in the rebuilt snap; both reports require a clean to fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1916333 removing a hook from snap/hooks does not remove it from prime/snap/hooks | snapcraft (launchpad) | open | Snapcraft bug: deleting a hook from snap/hooks/ does not remove the stale copy from prime/snap/hooks/, so the hook still ships in the package after a rebuild. Open ~5.5 years, zero comments, no labels, no maintainer response. | |
| #1746403 snapcraft fails to find hooks if ran from snap directory. | snapcraft (launchpad) | open | 2017 report: running snapcraft from the snap/ directory builds without error but omits hooks, causing confusing install failures; proposes enforcing project-root CWD. No maintainer activity in 8+ years; likely obsolete after the core22 rewrite. | |
| #1905072 Change of behavior when priming hooks | snapcraft (launchpad) | closed | Closed without resolution. Reported hooks overwritten with empty scripts during the prime stage in snapcraft 4.4.2. Likely abandoned due to the deprecated parts: hooks: syntax. |