← Back to issue list

Built executable is not copied to prime/bin/

View original Launchpad issue

Metadata

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

Current evaluation

Snapcraft 2.43.1 fails on missing prime/bin/prettier although build/bin contains only prettier.js. The report suggests a command/config mismatch, but lacks project files or maintainer triage.

Suggested action: needs triage

Reason: The traceback looks for prime/bin/prettier while the report explicitly says build/bin contained only prettier.js, so Snapcraft had no executable named prettier to copy. However, no snapcraft.yaml or package.json was attached and the unlabelled issue has no maintainer response; confirm whether the app should invoke the JavaScript through node or generate a wrapper before closing it.

Evaluated by: mr-cal-bot

Impact: 24 Quick Win: 11 Complexity: 18 Confidence: 84 Actionability: 58

Issue body

Snapcraft crashed with following error while priming: Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1043, in invoke return Command.invoke(self, ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run ctx.forward(lifecyclecli.commands["snap"]) File "/usr/lib/python3/dist-packages/click/core.py", line 553, in forward return self.invoke(cmd, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 136, in snap project = _execute(steps.PRIME, parts=[], **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute lifecycle.execute(step, project_config, parts) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 196, in run self._create_meta(step, processed_part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 359, in _create_meta self.config.validator.schema, File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 109, in create_snap_packaging packaging.write_snap_yaml() File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 312, in write_snap_yaml snap_yaml = self._compose_snap_yaml() File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 468, in _compose_snap_yaml snap_yaml["apps"] = self._wrap_apps(self._config_data["apps"]) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 567, in _wrap_apps self._wrap_app(app, apps[app]) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 575, in _wrap_app app[k] = self._wrap_exe(app[k], "{}-{}".format(k, name)) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 546, in _wrap_exe with open(exepath, "rb") as exefile: FileNotFoundError: [Errno 2] No such file or directory: '/home/sangbum/Projects/prettier-snap/snap/prime/bin/prettier' * build/bin/ contained prettier.js but no file named prettier

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 24
Quick Win: 11
Complexity: 18
Confidence: 84
Actionability: 58
needs triage Snapcraft 2.43.1 fails on missing prime/bin/prettier although build/bin contains only prettier.js. The report suggests a command/config mismatch, but lacks project files or maintainer triage.
stealth/space-bunny-alpha
Impact: 20
Quick Win: 6
Complexity: 20
Confidence: 62
Actionability: 35
close stale Snapcraft 2.43.1 crashed with FileNotFoundError for prime/bin/prettier when wrapping an app command; build dir only had prettier.js. No maintainer response in ~8 years, and the 2.43 internal lifecycle/meta code no longer exists.
qwen/qwen3.6-35b-a3b
Impact: 70
Quick Win: 11
Complexity: 60
Confidence: 50
Actionability: 40
close resolved Snapcraft 2.43.1 crashed during priming because built executables were not copied to prime/bin/, causing a FileNotFoundError in _wrap_exe. The issue is 8 years old and the codebase has been significantly refactored.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 21
Staleness: 95
Complexity: 30
Confidence: 70
Support Request: 40
close stale Snapcraft 2.43.1+18.4 crashes during prime with FileNotFoundError when an app's command points to a file (prettier) that was not copied to prime/bin/; build/bin/ only contained prettier.js. Reported 8 years ago, no maintainer activity, 0 comments, unlabelled.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 35
Confidence: 92
Support Request: 15
close stale Snapcraft v2.43.1 crashes during prime step because a built executable is missing from prime/bin/. No maintainer interaction or activity in ~7.8 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 95
Support Request: 10
close stale Snapcraft v2.43.1 crashes during prime step due to missing executable. Unaddressed for ~8 years with no maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 20
close stale Snapcraft 2.43.1 crashes during the prime step because a built executable is not copied to prime/bin/. The report is from 2018, lacks labels or comments, and targets a deprecated version.

Update history

Date Change
created

Related work

  • Related To: snapcraft#2539 (confidence 88%)

    Commit e0cb7cb94 later added InvalidAppCommand diagnostics for nonexistent commands, relevant to this traceback but not evidence of a copying fix.

Related issues

Issue Project State Summary Similarity
#1812435 python snap fails to build no such file or directory in prime/bin snapcraft (launchpad) open Snapcraft 2.43.1 fails while priming because apps.command references a missing prime/bin/mockpyairpulse; the supplied YAML lacks evidence about the source package's entry point.
73%
#1795171 snapcraft fail to find built executable under prime $SNAP snapcraft (launchpad) closed Launchpad #1795171: crash was user error — app command used literal $SNAP/bin/ags. Maintainer @ogra gave the correct YAML (command: bin/ags), reporter confirmed; report later expired for 60 days inactivity.
71%