← Back to issue list

scriptlets erroring behavior

View original Github issue

Metadata

Project
snapcraft
Number
#1466
Type
issue
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Fixed in snapcraft#1545 (commit 3a18cc87a): scriptlets now fail on any command error, not only the final command.

Resolution: closed resolved

Reason: Merged PR snapcraft#1545 landed as commit 3a18cc87a, updating pluginhandler to fail when any scriptlet command errors and resolving LP #1707189.

Evaluated by: mr-cal-bot

No scores available.

Issue body

[bug](https://bugs.launchpad.net/snapcraft/+bug/1707189)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed in snapcraft#1545 (commit 3a18cc87a): scriptlets now fail on any command error, not only the final command.
stealth/space-bunny-alpha — closed resolved Fixed in canonical/snapcraft#1545 (commit 3a18cc87a): pluginhandler now fails on any scriptlet command error, not just the final command (LP #1707189).
qwen/qwen3.6-35b-a3b — — Closed via pull request #1545. The merged fix resolves the scriptlets erroring behavior bug, implementing proper error handling for scriptlet execution.
qwen/qwen3.6-35b-a3b — — Resolved by merging pull request #1545, which fixed the scriptlets erroring behavior. Closed by maintainer sergiusens on September 12, 2017.
qwen/qwen3.6-35b-a3b — — Fixed and closed by merged pull request #1545, which resolved the scriptlets erroring behavior. The fix was implemented and the issue marked as closed by maintainer sergiusens.
qwen3.6-35b-a3b-mtp-q6 — — Resolved via pull request #1545. The scriptlets erroring behavior was fixed and merged, closing the issue.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#1545 (confidence 100%)

    The maintainer explicitly cited this merged PR as the closure resolution.

Related issues

Issue Project State Summary Similarity
#1545 pluginhandler: error out on scriptlet errors snapcraft merged Merged pluginhandler now fails on any scriptlet command error, not only the final command, fixing LP #1707189; PR snapcraft#1545 landed as commit 3a18cc87a.
79%
#1751749 install scriptlet fails with stacktrace and failed command in deleted tmp files snapcraft (launchpad) closed Fixed as a side effect of merged snapcore/snapcraft#2002 (commit bbca282fa), which reworked scriptlet command and error handling.
78%
#1707189 Scriptlets should run with "-e" shell flag snapcraft (launchpad) closed Scriptlets now stop on command failures; fixed by snapcore/snapcraft PR #1545 in commit 3a18cc87a.
78%
#4372 Error messages when running scriplets make debugging failures difficult snapcraft closed Scriptlet failures reported unrelated line numbers and untransformed errors. Fixed via craft-parts#966 (49cde073) and #897 (5bbd983e), shipped in Snapcraft 8.6; author confirmed closure in Feb 2025.
73%