Underscores in app names cause inscrutable error

Bug #1606890 reported by Dan Watkins
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Kyle Fazzari

Bug Description

With the following apps stanza:

apps:
    foo_bar:
        ...

snapcraft will fail with an error message that looks like this:

Issues while validating snapcraft.yaml: The 'apps' property does not match the required schema: Additional properties are not allowed ('foo_bar' was unexpected)

This doesn't explain what the error is at all, and it took a lot of trial and error to work it out.

Revision history for this message
Leo Arias (elopio) wrote :

Setting importance to high because this could make packagers to waste a lot of time while trying to figure out the error.

Changed in snapcraft:
status: New → Confirmed
importance: Undecided → High
Simon Quigley (tsimonq2)
Changed in snapcraft:
assignee: nobody → Simon Quigley (tsimonq2)
status: Confirmed → In Progress
Simon Quigley (tsimonq2)
Changed in snapcraft:
assignee: Simon Quigley (tsimonq2) → nobody
Changed in snapcraft:
status: In Progress → Triaged
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: Triaged → In Progress
assignee: nobody → Kyle Fazzari (kyrofa)
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Note that this bug also applies to hook and part names. The above PR fixes all three.

Changed in snapcraft:
status: In Progress → Fix Committed
milestone: none → 2.35
Changed in snapcraft:
status: Fix Committed → Fix Released
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.