← Back to issue list

Removing a hook script and building, script still present

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1865167
Type
issue
State
open
Author
~knitzsche
Labels
—
Created
Updated
Closed
—

Current evaluation

Incremental builds can retain a deleted snap/hooks script until snapcraft clean; the report has no maintainer triage or confirmed resolution.

Suggested action: needs triage

Reason: The report clearly states that deleting snap/hooks/prepare-slot-serial-port-port, rebuilding retained the hook, and cleaning removed it. However, all four comments discuss native versus cross-compilation rather than this bug, and the unlabelled report lacks version and project details or evidence of a fix.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 16 Complexity: 52 Confidence: 82 Actionability: 76

Issue body

I had a snap/hooks/prepare-slot-serial-port hook script and built the snap. I then realized I did not want the hook, so I deleted the file and re-ran snapcraft. The final snap still contained the hook script, so I had to clean and build, which took a long time since this is building a a gadget on pi3. Expected behavior: snapcraft would detect a previous hook script is no longer present and create a new snap without it, without needed to clean first.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 16
Complexity: 52
Confidence: 82
Actionability: 76
needs triage Incremental builds can retain a deleted snap/hooks script until snapcraft clean; the report has no maintainer triage or confirmed resolution.
stealth/space-bunny-alpha
Impact: 47
Quick Win: 20
Complexity: 48
Confidence: 84
Actionability: 80
needs triage An untriaged report says deleted snap/hooks scripts remain in incremental gadget builds, producing incorrect snaps and forcing a lengthy clean rebuild; comments never address the stale-file bug.
stealth/space-bunny-alpha
Impact: 49
Quick Win: 18
Complexity: 44
Confidence: 69
Actionability: 66
needs triage Deleted snap/hooks scripts remain in incremental builds until Snapcraft is cleaned, causing incorrect gadget packaging and costly rebuilds on Raspberry Pi.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 24
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.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.