snapcraft truncates trailing 0's from version
Metadata
Current evaluation
Abandoned. The trailing zero truncation bug in snapcraft version strings was not addressed and remains unresolved.
Suggested action: —
No scores available.
Issue body
$ 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-root/meta/snap.yaml
architectures:
- all
description: baz
name: foo
summary: bar
version: 0.2
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The trailing zero truncation bug in snapcraft version strings was not addressed and remains unresolved. | |
| qwen/qwen3.6-35b-a3b | — | — | snapcraft incorrectly strips trailing zeros from version strings in filenames and snap.yaml. The report was closed without comments, indicating the bug was abandoned or resolved in a later release. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1683827 snapcraft list-revisions strip trailing 0's from versions | snapcraft (launchpad) | open | snapcraft list-revisions displayed version 0.10 as 0.1, stripping trailing zeros. Reported in 2017 with no maintainer response. Project has since been fully rearchitected; original code path no longer exists. | |
| #1669291 'snap info' does not handle versions that end in 0 well | snapcraft (launchpad) | closed | Abandoned and closed without a linked pull request or public resolution. The report identified that snap info incorrectly strips trailing zeros from version numbers by parsing them as floats. | |
| #1761598 Snapcraft modifies binaries | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft 2.39.2 and 2.40.1 modified binaries by adding 4096 bytes, a regression from 2.35. The report was abandoned with no comments or fix applied. | |
| #1777659 Snapcraft version string doesn't allow certain characters | snapcraft (launchpad) | open | Snapcraft rejects version strings containing underscores (e.g. '2018_931-01') even though the version field is described as 'just for humans'. No maintainer response, no labels, 0 comments, ~8 years old. |