Adding a scriptlet doesn't mark a part as dirty
Metadata
Current evaluation
Adding/changing a prepare/build/install scriptlet left the part's build state unchanged, so the part wasn't marked dirty and its steps were skipped. Fixed by merged PR snapcore/snapcraft#1618 (commit 4355d3ac1, 'states: add scriptlets to build state'), released in snapcraft 2.35.
Resolution: closed resolved
Reason: Maintainer ~kyrofa pointed to snapcore/snapcraft#1618, which was merged as commit 4355d3ac1 and added prepare/build/install scriptlets to the build state so edits to them dirty the part and force cleaning. The change shipped in the 2.35 release changelog commit (050b767ec).
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Adding/changing a prepare/build/install scriptlet left the part's build state unchanged, so the part wasn't marked dirty and its steps were skipped. Fixed by merged PR snapcore/snapcraft#1618 (commit 4355d3ac1, 'states: add scriptlets to build state'), released in snapcraft 2.35. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#1618 (commit 4355d3ac1), which tracked prepare, build, and install scriptlets in the build state so changes mark a part dirty. | |
| stealth/space-bunny-alpha | — | closed stale | The scriptlet dirty-state bug report was closed without a verifiable fix or maintainer explanation; zero comments and 3,233 days of inactivity indicate a stale closure. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Adding a scriptlet fails to mark a part as dirty, skipping rebuilds. Issue closed without resolution. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft fails to mark parts as dirty when scriptlets are added, causing skipped rebuilds. No fix was implemented. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#1618
(confidence 97%)
Merged PR 'states: add scriptlets to build state' (commit 4355d3ac1), referenced directly by the closing maintainer comment.
-
Related To:
snapcraft#1220
(confidence 55%)
Release changelog for 2.28; the fix followed shortly after in the 2.35 changelog (commit 050b767ec).
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1618 states: add scriptlets to build state | snapcraft | merged | Merged PR #1618 (commit 4355d3ac1) adds prepare/build/install scriptlets to the build state so changing them marks the part dirty, fixing LP bug #1672407. |