Underscores in app names cause inscrutable error
Metadata
Current evaluation
Fixed unclear schema errors for invalid app, hook, and part names by merging canonical/snapcraft#1615 in commit baef97109.
Resolution: closed resolved
Reason: PR #1615 added clearer validation for invalid app, hook, and part names and was merged as commit baef97109, explicitly fixing Launchpad bug #1606890.
Evaluated by: mr-cal-bot
No scores available.
Issue body
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.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed unclear schema errors for invalid app, hook, and part names by merging canonical/snapcraft#1615 in commit baef97109. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1615 (commit baef97109), which replaced cryptic app-name schema errors with clearer validation messages for apps, hooks, and parts. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as unresolved after prolonged inactivity; no fix, superseding change, or maintainer explanation was recorded for the unclear validation error on underscored app names. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The confusing validation error for underscores in app names remains unaddressed, with the report abandoned due to zero comments and extended inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution due to inactivity. The confusing validation error for underscores in app names remains unaddressed. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#1615
(confidence 100%)
Merged PR implementing clear invalid-name errors for apps, hooks, and parts.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1798205 Underscores in app names not reported properly | snapcraft (launchpad) | open | The misleading invalid-app diagnostic was addressed by PR #1615 (baef97109); this report remains open but appears obsolete because clearer schema errors replaced the cryptic message. |