Snapcraft tries to run chisel and fails

Bug #2020348 reported by Isaac True
6
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:{CRAFT_TARGET_ARCH}

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.

Revision history for this message
Callahan Kovacs (mr-cal) wrote :

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/z9f19hegx7fm5e43m13atryudo

Changed in snapcraft:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.