← Back to issue list

snapcraft could be more helpful in figuring out prime/organize errs vs executable bits

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1889082
Type
issue
State
open
Author
~anonymouse67
Labels
Created
2020-07-27 13:50:46.926249+00:00
Updated
2020-07-28 12:22:35.051917+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

the error message: ``` Failed to generate snap metadata: The command-chain item 'script.sh' defined in the app 'my-app' does not exist or is not executable. Ensure that 'script.sh' is relative to the prime directory. ``` is not helpful when you are first creating a part that uses organize/prime/stage, etc. as it becomes unclear if the issue is your script is not executable or if the script was put in the wrong place or if the command-chain specification is wrong, making for needlessly confusing debugging, when snapcraft could be more specific saying that either the command-chain location and the file location do not match, and having a separate message about the script not being executable so that if your issue is just it not being executable you know that right away and don't have to spend time confirming that everything is put into the right place.

Evaluation history

No evaluation history available.