We can't actually use (guix config) since it doesn't have a useful version number in this stage of the build process. See the use of make-config.scm in build-program of build-aux/build-self.scm.
We need to use the nearest tag but that requires the git repo and we drop that in the channel checkout. See use of dot-git? in latest-channel-instance of (guix channels). To remedy this, I am generating .version before discarding the git repo. WDYT? Arun Isaac (1): self: Use nearest tag as the version string in documentation. guix/channels.scm | 15 ++++++++++++++- guix/self.scm | 11 +++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) -- 2.26.2