← Back to issue list

schema: version should have a max length of 32

View original Github issue

Metadata

Project
snapcraft
Number
#1508
Type
pull request
State
merged
Author
kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR snapcraft#1508 (commit af16b802d) by kyrofa added schema validation capping the version field at 32 characters, warning users at build time instead of failing on store review upload.

Resolution: closed resolved

Reason: The PR itself was merged (commit af16b802d) after approval from two reviewers, adding a maxLength=32 constraint to the version field in the snap schema. The author noted it addresses only one component of LP #1712061 and explicitly did not close that Launchpad bug, which still needs wider discussion.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This PR addresses one component of LP: [#1712061](https://bugs.launchpad.net/snapcraft/+bug/1712061) by adding a schema validation for the version's length. This is enforced by the review tools in the store, but now Snapcraft will warn before the user gets to the point of uploading. Note that this PR should not close LP: [#1712061](https://bugs.launchpad.net/snapcraft/+bug/1712061), as it needs wider discussion.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR snapcraft#1508 (commit af16b802d) by kyrofa added schema validation capping the version field at 32 characters, warning users at build time instead of failing on store review upload.
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#1508 (commit af16b802d), adding schema validation that limits versions to 32 characters and warns users before upload.
qwen/qwen3.6-35b-a3b — — Merged after approval by two reviewers and passing CI checks. Adds schema validation to enforce a maximum version length of 32 characters, warning users before upload to align with store review tool enforcement.
qwen3.6-35b-a3b-mtp-q6 — — Merged schema validation enforcing a 32-character maximum length for the version field. Warns users before upload to match store review tool enforcement, without resolving the broader related bug.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1712061 (confidence 45%)

    LP #1712061 is the parent tracking bug; the PR body states it covers only part of it and intentionally leaves it open.

Related issues

No related issues found above the similarity threshold.