Snapcraft tries to run chisel and fails
Bug #2020348 reported by
Isaac True
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
If the user makes a typo in stage-packages and forgets the $ like so:
stage-packages:
- package:
Snapcraft for some reason then tries to run chisel, which does not exist in the snap and fails with the following message:
chisel: No such file or directory
This should probably be a syntax error in this case, rather than being interpreted by Snapcraft as something to do with chisel.
To post a comment you must log in.
Thanks for this bug report! I'm able to reproduce the same issue for core22 snaps.
Snapcraft and craft-parts interpret the underscores as chisel packages and chisel is not installed in the build-environment.
I agree that error handling and user experience could be improved.
Also posted in the public snapcraft mattermost channel: https:/ /chat.charmhub. io/charmhub/ pl/z9f19hegx7fm 5e43m13atryudo