'snap info' does not handle versions that end in 0 well
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
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.
Suggested action: —
No scores available.
Issue body
LXD 2.10 is just released but 'snap info' presents this as 2.1:
$ snap info lxd
name: lxd
summary: "LXD - the container lightervisor"
publisher: canonical
description: |
LXD is a container manager for system containers.[...]
commands:
- lxd
- lxd.benchmark
- lxd.lxc (lxc)
tracking: stable
installed: 2.8 (976) 12MB -
refreshed: 2017-01-25 04:47:15 +0100 CET
channels:
stable: 2.8 (976) 12MB -
candidate: 2.1 (1416) 12MB -
beta: 2.1 (1416) 12MB -
edge: git-e177ca9 (1435) 12MB -
We should make sure we are not parsing versions as numbers and silently dropping trailing post-decimal-point zeroes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen/qwen3.6-35b-a3b | — | — | A bug report noting snap info drops trailing zeros in version numbers (e.g., 2.10 shown as 2.1) was closed without resolution. Zero comments and years of inactivity confirm the report was abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without documented resolution. The report identified that snap info incorrectly truncated trailing zeros in version numbers by parsing them as floats instead of strings. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1586162 snapcraft truncates trailing 0's from version | snapcraft (launchpad) | closed | Abandoned. The trailing zero truncation bug in snapcraft version strings was not addressed and remains unresolved. | |
| #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. |