Snapcraft version string doesn't allow certain characters
Metadata
Current evaluation
Snapcraft still rejects upstream-style 2018_931-01 because underscores are outside snap version grammar; the misleading "just for humans" wording remains and grammar changes span snapd, review-tools, and snapstore.
Suggested action: keep open
Reason: The report provides an exact failing version, and the current template still calls the field "just for humans" despite the validator enforcing a stricter grammar. @~chipaca noted that any grammar change requires work in snapd, review-tools, and snapstore, making this a valid but cross-project limitation rather than a stale report.
Evaluated by: mr-cal-bot
Impact:
38
Quick Win:
4
Complexity:
82
Confidence:
90
Actionability:
60
Issue body
version: '2018_931-01'
"Issues while validating None: The 'version' property does not match the required schema: '2018_931-01' is not a valid snap version. Snap versions consist of upper- and lower-case alphanumeric characters, as well as periods, colons, plus signs, tildes, and hyphens. They cannot begin with a period, colon, plus sign, tilde, or hyphen. They cannot end with a period, colon, or hyphen.
"
The output of 'snapcraft init' says:-
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
If it's "Just for humans" then maybe we shouldn't prescribe what version number the upstream developer should use, in their already established version system?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
38
Quick Win:
4
Complexity:
82
Confidence:
90
Actionability:
60
|
keep open | Snapcraft still rejects upstream-style 2018_931-01 because underscores are outside snap version grammar; the misleading "just for humans" wording remains and grammar changes span snapd, review-tools, and snapstore. | |
| stealth/space-bunny-alpha |
Impact:
38
Quick Win:
4
Complexity:
82
Confidence:
82
Actionability:
62
|
keep open | Unresolved request to support upstream-style versions containing underscores: Snapcraft rejects 2018_931-01, and a maintainer says any fix must coordinate snapd, review-tools, and snapstore. | |
| stealth/space-bunny-alpha |
Impact:
30
Quick Win:
9
Complexity:
40
Confidence:
93
Actionability:
50
|
close not a bug | Upstream versions containing underscores are rejected by snap version syntax; current validation deliberately excludes them, despite the misleading “just for humans” template comment. | |
| qwen/qwen3.8-27b |
Impact:
30
Quick Win:
21
Staleness:
95
Complexity:
30
Confidence:
45
Support Request:
25
|
needs triage | Snapcraft rejects version strings containing underscores (e.g. '2018_931-01') even though the version field is described as 'just for humans'. No maintainer response, no labels, 0 comments, ~8 years old. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
85
Support Request:
35
|
close stale | Reports snapcraft init rejecting version strings with underscores due to strict validation rules. Unassessed, zero comments, and over eight years inactive. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
10
|
close stale | Snapcraft rejects version strings containing underscores despite documentation stating versions are just for humans. Unlabelled, author-only post from over eight years ago with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
15
Confidence:
85
Support Request:
10
|
close stale | Reports snapcraft's strict version validation rejects upstream version strings containing underscores. Unlabeled, zero comments, inactive for over eight years. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1712061 snapcraft restricts version field too much | snapcraft (launchpad) | closed | Version syntax stayed restricted. PR snapcore/snapcraft#1508 added the Store's missing 32-character limit, but requests for @, /, and spaces stalled without approval and the issue was closed. |