GNU bug report logs - #72495
`guix --version` not really helpful

Previous Next

Package: guix;

Reported by: Stéfane Fermigier <sf <at> fermigier.com>

Date: Tue, 6 Aug 2024 11:49:02 UTC

Severity: normal

To reply to this bug, email your comments to 72495 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#72495; Package guix. (Tue, 06 Aug 2024 11:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stéfane Fermigier <sf <at> fermigier.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 06 Aug 2024 11:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stéfane Fermigier <sf <at> fermigier.com>
To: bug-guix <at> gnu.org
Subject: `guix --version` not really helpful
Date: Tue, 6 Aug 2024 12:14:56 +0200
[Message part 1 (text/plain, inline)]
When I type:

guix --version

I get:

guix (GNU Guix) 6689a96ce86497299bd29f183b744116fd2d6e32

That's not really helpful (i.e. it doesn't tell how old / up to date my
system is). A proper version number (e.g. "x.y.z-devel", etc.) and/or a
date would be nice.

  S.

-- 
Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier -
http://linkedin.com/in/sfermigier
Founder & CEO, Abilian - Enterprise Social Software -
http://www.abilian.com/
Founder & Software Architect - Nua & Hop3 open source PaaS project -
https://nua.rocks/  / https://hop3.cloud/
Co-Founder & Co-Chairman, National Council for Free & Open Source Software
(CNLL) - http://cnll.fr/
Co-Founder & Board Member, Association Professionnelle Européenne du
Logiciel Libre (APELL) - https://www.apell.info/
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#72495; Package guix. (Tue, 06 Aug 2024 16:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 72495 <at> debbugs.gnu.org (full text, mbox):

From: Ashvith Shetty <ashvithshetty10 <at> gmail.com>
To: 72495 <at> debbugs.gnu.org
Date: Tue, 6 Aug 2024 16:20:35 +0000
[Message part 1 (text/plain, inline)]
Hello Stéfane,
I've noticed that while using `guix shell guix -- guix --version`, it works
fine:

$ guix shell guix -- guix --versionguix (GNU Guix)
1.4.0-23.843b85cCopyright (C) 2024 the Guix authorsLicense GPLv3+: GNU
GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free
software: you are free to change and redistribute it.There is NO
WARRANTY, to the extent permitted by law.

However, when it is the system-wide `guix --version`, it does not:

$ guix --versionguix (GNU Guix)
892a915c08736c873a950bb2b44a6d0f49aea1d2Copyright (C) 2024 the Guix
authorsLicense GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>This is free software: you are free
to change and redistribute it.There is NO WARRANTY, to the extent
permitted by law.

This is just me speculating, but I think that the script `build-aux
<https://git.savannah.gnu.org/cgit/guix.git/tree/build-aux>/git-version-gen
<https://git.savannah.gnu.org/cgit/guix.git/tree/build-aux/git-version-gen>`,
which is supposed to set versions from the most recent annotated tags,
isn't working the way it is supposed to be, at least while building the
system-wide guix command.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#72495; Package guix. (Tue, 10 Sep 2024 16:20:05 GMT) Full text and rfc822 format available.

Message #11 received at 72495 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Stéfane Fermigier <sf <at> fermigier.com>
Cc: 72495 <at> debbugs.gnu.org
Subject: Re: bug#72495: `guix --version` not really helpful
Date: Tue, 10 Sep 2024 15:16:30 +0200
Hi,

On Tue, 06 Aug 2024 at 12:14, Stéfane Fermigier <sf <at> fermigier.com> wrote:
> When I type:
>
> guix --version
>
> I get:
>
> guix (GNU Guix) 6689a96ce86497299bd29f183b744116fd2d6e32
>
> That's not really helpful (i.e. it doesn't tell how old / up to date my system is). A proper version number (e.g. "x.y.z-devel", etc.) and/or a date
> would be nice.

Maybe what you want is “guix describe”.  For instance, it outputs:

    $ guix describe
    Generation 8	Sep 09 2024 15:14:29	(current)
      guix 056910e
        repository URL: https://git.savannah.gnu.org/git/guix.git
        commit: 056910ec864cb7cf3225a0c27679d94405db7dcd

It does not tell how old or up-to-date your system is but it informs you
about your last “guix pull”.  It seems a good starts.

About a proper version number, I am not convinced it suits well some
rolling-release.  Troll inside. ;-)

Cheers,
simon




This bug report was last modified 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.