It is possible to make a snap with an empty version
Bug #1660076 reported by
Leo Arias
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Click Reviewers tools (obsolete) |
Invalid
|
Undecided
|
Unassigned | ||
Snapcraft |
Fix Released
|
Undecided
|
RoxD | ||
snapd |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The version of the snaps is free form, but we should at least verify that it is a non-empty string.
Currently it is possible to write a snap with
"version: "
or
"version: ''"
and snapcraft won't complain.
In this cases, an error message should be returned.
To reproduce:
$ snapcraft init
$ sed -i "s/version:
$ snapcraft
[...]
Snapped my-snap-
$ sed -i "s/version:
$ snapcraft
[...]
Snapped my-snap-
tags: | added: ui |
Changed in snapcraft: | |
assignee: | nobody → RoxD (roxd) |
status: | New → In Progress |
To post a comment you must log in.
Note that this will build successfully, but it will fail when pushed to the store.