snapcraft version number output inconsistent

Bug #1742585 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

"snapcraft push" shows trailing zeores on version numbers, but "snapcraft release" and "snapcraft status" truncate the trailing zero. "snapcraft push" is correct, the others are wrong.

Running snapcraft 2.35 via apt.

I have a snap (get-iplayer) which is version "3.10" in the snapcraft yaml. I have pushed it to the store and released to all channels.

Snapcraft push says this:-

# snapcraft push get-iplayer_3.10_armhf.snap --release candidate,beta,edge
Pushing get-iplayer_3.10_armhf.snap
After pushing, an attempt to release to ['candidate', 'beta', 'edge'] will be made
Preparing to push '/root/get-iplayer_3.10_armhf.snap' to the store.
Pushing get-iplayer_3.10_armhf.snap [==============================================================================] 100%
Processing...|
Ready to release!
Revision 9 of 'get-iplayer' created.
Track Arch Channel Version Revision
latest armhf stable - -
                 candidate 3.10 9
                 beta 3.10 9
                 edge 3.10 9

I then released:-

# snapcraft release get-iplayer 9 stable
Track Arch Channel Version Revision
latest armhf stable 3.1 9
                 candidate 3.1 9
                 beta 3.1 9
                 edge 3.1 9
The 'stable' channel is now open.

When I later checked the versions in channels (after releasing to stable), I see this:-

# snapcraft status get-iplayer
Track Arch Channel Version Revision
latest amd64 stable 3.1 7
                 candidate 3.1 7
                 beta 3.1 7
                 edge 3.1 7
         armhf stable 3.1 9
                 candidate 3.1 9
                 beta 3.1 9
                 edge 3.1 9
         i386 stable 3.1 8
                 candidate 3.1 8
                 beta 3.1 8
                 edge 3.1 8

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.