micro icon indicating copy to clipboard operation
micro copied to clipboard

[Ubuntu 20.04] micro --version returns `Version: 0.0.0-unknown`

Open basonjui opened this issue 2 years ago • 2 comments

Description of the problem or steps to reproduce

Hi, I recently switched to Ubuntu and tried to install micro with apt-get. It installs micro and works just fine, however, when I try to check for the version, it says Version: 0.0.0-unknown.

I think there is a similar issue on Debian (https://github.com/zyedidia/micro/issues/1582) but I am not sure how to fix it on Ubuntu, sorry!

Specifications

Commit hash: OS: Ubuntu Terminal: Default

basonjui avatar May 11 '22 05:05 basonjui

This is a mistake by the packager, not the software. So you should probably report it to the folks at Ubuntu. I recently saw the same problem on Fedora and submitted a bug there.

If you take a look at how Arch does it where it's properly built, you can see that those variables are set and passed into go build.

cyqsimon avatar Jun 15 '22 06:06 cyqsimon

The bug was fixed at 2.0.2-2 in the package in Debian but there was a new Ubuntu release when that version was released. Packages in Debian are not usually synced or merged in old Ubuntu releases if there are no vulnerabilities so the bug was only fixed in Ubuntu 22.04.

niten94 avatar Jan 27 '24 11:01 niten94