`guix --version` not really helpful

  • Open
  • quality assurance status badge
Details
3 participants
  • Ashvith Shetty
  • Stéfane Fermigier
  • Simon Tournier
Owner
unassigned
Submitted by
Stéfane Fermigier
Severity
normal
S
S
Stéfane Fermigier wrote on 6 Aug 12:14 +0200
(address . bug-guix@gnu.org)
CABuJJj5pzd_En7X5S9r8-VzLwgO3ABZ6ycowE0K-GzRPLx2g3A@mail.gmail.com
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 -
Founder & CEO, Abilian - Enterprise Social Software -
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
Co-Founder & Board Member, Association Professionnelle Européenne du
Logiciel Libre (APELL) - https://www.apell.info/
Attachment: file
A
A
Ashvith Shetty wrote on 6 Aug 18:20 +0200
(address . 72495@debbugs.gnu.org)
CA+n6Bx8-CzikHJfjL12br=LFzed4Diyd5F7iD0GuuQZt7skKsw@mail.gmail.com
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.htmlThis 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.htmlThis 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
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.
Attachment: file
S
S
Simon Tournier wrote on 10 Sep 15:16 +0200
(name . Stéfane Fermigier)(address . sf@fermigier.com)(address . 72495@debbugs.gnu.org)
87ttenejip.fsf@gmail.com
Hi,

On Tue, 06 Aug 2024 at 12:14, Stéfane Fermigier <sf@fermigier.com> wrote:
Toggle quote (11 lines)
> 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
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
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 72495@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 72495
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch