← Back to issue list

User friendly error missing when using go's source entry incorrectly

View original Github issue

Metadata

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

Current evaluation

Go source validation was fixed to avoid a FileNotFoundError traceback.

Resolution: closed resolved

Reason: The maintainer confirmed on 2015-11-16 that the problem was fixed. No specific resolving PR or commit was identified.

Evaluated by: mr-cal-bot

No scores available.

Issue body

daniel@daydream:~/dev/apps/bwm-ng.snap$ cat snapcraft.yaml name: bwm-ng version: 0.6-3.2 vendor: Daniel Holbach <email address hidden> summary: small and simple console-based bandwidth monitor description: Bandwidth Monitor NG is a small and simple console-based live network and disk io bandwidth monitor for Linux, BSD, Solaris, Mac OS X and others icon: ubuntu.png binaries: bwm-ng: exec: usr/bin/bwm-ng parts: bwm-ng: type: go source: . stage-packages: [bwm-ng] daniel@daydream:~/dev/apps/bwm-ng.snap$ ls image parts snapcraft.yaml ubuntu.png daniel@daydream:~/dev/apps/bwm-ng.snap$ snapcraft Skipping pull bwm-ng (already ran) Skipping build bwm-ng (already ran) Skipping stage bwm-ng (already ran) Traceback (most recent call last): File "/usr/bin/snapcraft", line 33, in <module> snapcraft.main.main() File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 80, in main args.func(args) File "/usr/lib/python3/dist-packages/snapcraft/cmds.py", line 99, in assemble snap(args) File "/usr/lib/python3/dist-packages/snapcraft/cmds.py", line 81, in snap cmd(args) File "/usr/lib/python3/dist-packages/snapcraft/cmds.py", line 325, in cmd shutil.rmtree(common.get_snapdir()) File "/usr/lib/python3.4/shutil.py", line 459, in rmtree onerror(os.lstat, path, sys.exc_info()) File "/usr/lib/python3.4/shutil.py", line 457, in rmtree orig_st = os.lstat(path) FileNotFoundError: [Errno 2] No such file or directory: '/home/daniel/dev/apps/bwm-ng.snap/snap' daniel@daydream:~/dev/apps/bwm-ng.snap$ Launchpad Details: [#LP1499240](https://bugs.launchpad.net/bugs/1499240) Daniel Holbach - 2015-09-24 06:02:52 -0300

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Go source validation was fixed to avoid a FileNotFoundError traceback.
stealth/space-bunny-alpha — closed resolved Go part source validation now exits cleanly with a user-friendly error; fixed in commit 0e575ce53.
qwen/qwen3.6-35b-a3b — — Fixed the missing user-friendly error when the Go plugin source entry is misconfigured. The maintainer confirmed the resolution on November 16, 2015, replacing the Python traceback with a proper validation message. Issue closed.
qwen/qwen3.6-35b-a3b — — Fixed missing user-friendly error handling for incorrect Go plugin source configuration. The maintainer reproduced the issue and confirmed the resolution.
qwen/qwen3.6-35b-a3b — — Fixed missing user-friendly error handling for incorrect Go plugin source configuration. The maintainer replaced the FileNotFoundError traceback with a clear error message to improve build feedback.
qwen3.6-35b-a3b-mtp-q6 — — Fixed an unhelpful FileNotFoundError when using source: . with the Go plugin. Maintainer confirmed the bug and resolved it by implementing a user-friendly error message to replace the raw traceback during snap assembly.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.