Hello Stéfane,
I've noticed that while using `guix shell guix -- guix --version`, it works fine:
$ guix shell guix -- guix --version
guix (GNU Guix) 1.4.0-23.843b85c
Copyright (C) 2024 the Guix authors
License 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 --version
guix (GNU Guix) 892a915c08736c873a950bb2b44a6d0f49aea1d2
Copyright (C) 2024 the Guix authors
License 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/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.