snapcraft truncates trailing 0's from version
Bug #1586162 reported by
Jamie Strandboge
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Sergio Schvezov |
Bug Description
$ snapcraft --version
2.8.8b0
$ cat ./snapcraft.yaml
name: foo
version: 0.20
summary: bar
description: baz
architectures: [all]
parts:
foo:
plugin: nil
$ snapcraft
...
Snapping foo_0.2_all.snap
...
Snapped foo_0.2_all.snap
In addition to truncating the version from the file name, it is also wrong in meta/snap.yaml:
$ unsquashfs ./foo_0.2_all.snap
...
$ cat ./squashfs-
architectures:
- all
description: baz
name: foo
summary: bar
version: 0.2
description: | updated |
Changed in snapcraft: | |
milestone: | none → 3.0 |
assignee: | nobody → Sergio Schvezov (sergiusens) |
importance: | Undecided → Medium |
status: | Triaged → In Progress |
tags: | added: 18.10-build-vm |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
jdstrand well, according to yaml syntax that is a number, not a string. One of the mechanisms to tell it is a string is to use quotes ("). That said, we can ignore yaml parsing and try and force it to string.
I guess this is what we want.