"error setting version:", but no clue what the invalid value was

Bug #2012429 reported by Michał Sawicz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Committed
Undecided
Aritra Basu

Bug Description

When something goes wrong with our dynamic version determination, we sometimes get:

error setting 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
Failed to execute pack in instance.

But what was the wrong version? Have to dig through the log to find it.

Revision history for this message
Aritra Basu (nevgen) wrote :

Is this a valid request? If so can I make this change?

Revision history for this message
Aritra Basu (nevgen) wrote :

I've created a pr for this https://github.com/snapcore/snapcraft/pull/4284, though if this is wanted perhaps other parameters should also output the erroneous values.

Changed in snapcraft:
assignee: nobody → Aritra Basu (nevgen)
Changed in snapcraft:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.