Skip to content

Winget search version number formatting: trailing zeroes are removed when they shouldn't be #5745

@Nereithr

Description

@Nereithr

Relevant area(s)

WinGet CLI

Relevant command(s)

winget search

Brief description of your issue

The "Version" column in the results table formats the version numbers in a way that removes the trailing zeroes.

Steps to reproduce

  1. winget search rufus
  2. Observe the version number. For the current release version (4.10), it is displayed as 4.1

Expected behavior

Version number is displayed correctly without the removal of trailing zeroes, such as when running "winget list rufus".

Actual behavior

Version number is displayed incorrectly.

Here is a screenshot comparing "winget search rufus" and "winget list rufus"

Image

Environment

Windows: Windows.Desktop v10.0.26100.6584
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.429.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-SearchIssue related to WinGet SearchIssue-BugIt either shouldn't be doing this or needs an investigation.Resolution-DuplicateIssue is a duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions