Bug 2264160 - version mismatch: CLI version shows -dev
Summary: version mismatch: CLI version shows -dev
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hcloud
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Major Hayden 🤠
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-14 09:32 UTC by Jakub Krysl
Modified: 2024-02-22 23:28 UTC (History)
3 users (show)

Fixed In Version: hcloud-1.42.0-4.fc41 hcloud-1.42.0-4.fc40
Clone Of:
Environment:
Last Closed: 2024-02-22 23:28:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jakub Krysl 2024-02-14 09:32:39 UTC
Version of RPM is different to version shown in CLI.

$ dnf info hcloud
Last metadata expiration check: 2:18:34 ago on Wed 14 Feb 2024 08:01:33 AM CET.
Installed Packages
Name         : hcloud
Version      : 1.42.0
Release      : 2.fc39
Architecture : x86_64
Size         : 14 M
Source       : hcloud-1.42.0-2.fc39.src.rpm
Repository   : @System
From repo    : updates
Summary      : A command-line interface for Hetzner Cloud
URL          : https://github.com/hetznercloud/cli
License      : MIT
Description  : 
             : A command-line interface for Hetzner Cloud.

$ hcloud version
hcloud 1.42.0-dev


Reproducible: Always

Steps to Reproduce:
1. dnf info hcloud
2. hcloud version
3. compare output
Actual Results:  
1.42.0-2 != 1.42.0-dev

Expected Results:  
1.42.0-2 == 1.42.0-2
or
1.42.0-2 == 1.42.0

Same issue was reported and fixed by brew: https://github.com/Homebrew/homebrew-core/issues/162520

The "-dev" causes issues with version comparison since "1.42.0-dev" < "1.42.0", so we cannot enforce version ">=1.42.0" to include this one.

Comment 1 Jakub Krysl 2024-02-14 10:53:54 UTC
The issue seems to be caused by "versionPrerelease" set to "dev" by default, see here: https://github.com/hetznercloud/cli/blob/acab17c361373e5bd3b689708195fa48f18dbafb/internal/version/version.go#L7-L10

Comment 2 Major Hayden 🤠 2024-02-22 18:44:47 UTC
Upstream changed their versioning logic! Thanks for letting me know.

Comment 3 Fedora Update System 2024-02-22 20:23:53 UTC
FEDORA-2024-b9ea6ceb6c (hcloud-1.42.0-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b9ea6ceb6c

Comment 4 Fedora Update System 2024-02-22 20:30:50 UTC
FEDORA-2024-8180eaa14f (hcloud-1.42.0-4.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8180eaa14f

Comment 5 Fedora Update System 2024-02-22 23:28:35 UTC
FEDORA-2024-b9ea6ceb6c (hcloud-1.42.0-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-02-22 23:28:43 UTC
FEDORA-2024-8180eaa14f (hcloud-1.42.0-4.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.