← Back to issue list

Underscores in app names not reported properly

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1798205
Type
issue
State
open
Author
~roger.light
Labels
—
Created
Updated
Closed
—

Current evaluation

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.

Suggested action: close resolved

Reason: The report provides a precise two-app reproducer using one and two_three. Launchpad #1606890 records that merged PR #1615, commit baef97109, fixed the same inscrutable underscore-related app-name error by improving invalid app, hook, and part schema errors; the obsolete diagnostic is also absent from current code.

Evaluated by: mr-cal-bot

Impact: 28 Quick Win: 17 Complexity: 30 Confidence: 91 Actionability: 86

Issue body

If you have a snap with multiple apps, and one of the apps has an underscore in its name (p.s. it'd be nice to see something move on #1616507 :), then a confusing error is reported against the first app only, even if that is valid. For example, with the attached snapcraft.yaml including an app "one" and "two_three", the error is: Issues while validating snapcraft.yaml: The 'apps' property does not match the required schema: 'one' is not a valid app name. App names consist of upper- and lower-case alphanumeric characters and hyphens. They cannot start or end with a hyphen.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 28
Quick Win: 17
Complexity: 30
Confidence: 91
Actionability: 86
close resolved 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.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 16
Complexity: 32
Confidence: 77
Actionability: 80
needs triage Snapcraft misattributes an invalid underscored app key to the first valid app, producing a misleading schema error; no maintainer triage or resolving change is evident.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 13
Complexity: 30
Confidence: 60
Actionability: 60
keep open Validation error for underscores in app names incorrectly blames the first valid app instead of the actual invalid app name.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21
Staleness: 95
Complexity: 40
Confidence: 60
Support Request: 5
needs triage Snapcraft reports the wrong app name in validation errors when an app name contains an underscore: with apps 'one' and 'two_three', the error blames the valid app 'one' instead of 'two_three'. Open since 2014, no labels, comments, or maintainer activity.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 85
Support Request: 10
close stale Snapcraft validation incorrectly rejects underscores in app names, reporting a schema error for valid names. Currently unlabelled, with no maintainer interaction and inactive for over 7 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 10
close stale Snapcraft validation incorrectly rejects app names containing underscores, reporting a schema error for the first app. The issue has been inactive for over seven years with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 75
Support Request: 10
close stale Snapcraft validation incorrectly flags valid app names with underscores, reporting errors only for the first app. The issue is nearly 8 years old with zero maintainer engagement.

Update history

Date Change
created

Related work

  • Related To: snapcraft (launchpad)#1606890 (confidence 96%)

    This reports the same underscore-in-app-name diagnostic problem and is recorded as fixed by PR #1615.

  • Likely Fixed By: snapcraft#1615 (confidence 94%)

    Merged PR #1615, commit baef97109, fixed related bug #1606890 by improving invalid app-name schema errors.

Related issues

Issue Project State Summary Similarity
#1606890 Underscores in app names cause inscrutable error snapcraft (launchpad) closed Fixed unclear schema errors for invalid app, hook, and part names by merging canonical/snapcraft#1615 in commit baef97109.
78%