override-build exits prematurely, part build succeeds
Metadata
Current evaluation
Snapcraft 7.x may mark an override-build successful after flutter-elinux exits early, deferring failure until packing reports bin/workshops missing; the cause remains unresolved and untriaged.
Suggested action: needs triage
Reason: The report provides exact versions and failing and working branches, but the only follow-up says manual commands work after adding `craftctl default` and `exit 0`; it provides no scriptlet exit status, build log, root cause, or maintainer assessment. The issue remains unlabelled and technically ambiguous, so it needs investigation rather than closure.
Evaluated by: mr-cal-bot
Impact:
50
Quick Win:
10
Complexity:
68
Confidence:
82
Actionability:
60
Issue body
I recently worked with a customer to help them enable video accelerated playback on a their device running Ubuntu Core, and one of the changes necessary was to switch from standard Flutter to a fork called Flutter-elinux which provides a new backend which doesn't rely on GTK.
I ran into a problem with their snap build which I haven't yet been able to root cause. For the sake of this bug, I'm using the workshops snap maintained by the Ubuntu Desktop team, as it exhibits the same behavior as the customer's snap when I update it to use flutter-elinux.
The problem I'm seeing is that when the workshops part runs, the override-build scriptlet exits prematurely, yet snapcraft seems to think the build of the part was successful. This results in the snap build failing because the actual binary 'bin/workshops', isn't found when the snap is packed.
Note - the customer found a workaround, namely to run the first flutter-elinux command (e.g. `flutter-elinux precache`) in an override-stage scriptlet in the flutter-git part, however I would still like to figure out why an override-build scriptlet could exit prematurely, but not trigger a build stage failure.
Snapcraft version: 7.x
Core: 22
Build machine: 22.04 LTS Desktop
Extensions: gnome
Workshop/flutter-elinux branch that fails:
https://github.com/tonyespy/workshops/tree/flutter-elinux
Workshop/flutter-elinux branch that works:
https://github.com/tonyespy/workshops/tree/flutter-elinux-fix
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
50
Quick Win:
10
Complexity:
68
Confidence:
82
Actionability:
60
|
needs triage | Snapcraft 7.x may mark an override-build successful after flutter-elinux exits early, deferring failure until packing reports bin/workshops missing; the cause remains unresolved and untriaged. | |
| stealth/space-bunny-alpha |
Impact:
50
Quick Win:
10
Complexity:
65
Confidence:
80
Actionability:
55
|
needs triage | Snapcraft 7.x reportedly marks an override-build successful after its script exits early, causing a later missing-binary packing failure; the root cause remains unknown and the report is untriaged. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
10
Complexity:
68
Confidence:
78
Actionability:
62
|
needs triage | Snapcraft 7.x reports an override-build as successful after the script exits early, allowing packing to fail later on a missing binary; the report remains unresolved and untriaged. | |
| stealth/space-bunny-alpha |
Impact:
40
Quick Win:
10
Complexity:
55
Confidence:
80
Actionability:
55
|
needs triage | Snapcraft 7.x reportedly lets override-build stop early and treats the workshops part as successful; failing/working Flutter-elinux branches are supplied, but no logs or maintainer triage exist. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
70
Quick Win:
24
Staleness:
85
Complexity:
65
Confidence:
60
Support Request:
15
|
needs triage | override-build scriptlet exits prematurely but snapcraft considers the build successful, causing snap packing to fail. Untriaged, no maintainer interaction. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
65
Confidence:
80
Support Request:
10
|
needs triage | Snapcraft override-build exits prematurely without triggering a build failure, causing missing binaries. Currently unlabelled with zero comments, requiring maintainer triage. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
60
Confidence:
90
Support Request:
10
|
needs triage | Snapcraft override-build exits prematurely but reports success, causing missing binaries. Unlabelled, no maintainer response, inactive for over 3 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
65
Confidence:
60
Support Request:
15
|
needs triage | Snapcraft override-build exits prematurely but reports success, causing missing binaries. Untriaged, no maintainer comments, inactive since creation. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
No related issues found above the similarity threshold.