unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45896: Non-pull ‘guix’ should know its channels
@ 2021-01-15 17:51 Ludovic Courtès
  2021-01-26 13:16 ` Ludovic Courtès
  2021-01-27 21:51 ` bug#45896: [PATCH 1/3] channels: Record 'guix' channel metadata in (guix config) Ludovic Courtès
  0 siblings, 2 replies; 8+ messages in thread
From: Ludovic Courtès @ 2021-01-15 17:51 UTC (permalink / raw)
  To: 45896

Related to <https://issues.guix.gnu.org/45895>, we have the problem that
the ‘guix’ command coming from the ‘guix’ package doesn’t know its
provenance: ‘guix describe’ errors out.

We should fix it by storing a meta-data file within the ‘guix’ package.

Likewise, on foreign distros, /usr/local/bin/guix may point to a ‘guix
pull’-guix, but because of the symlink, ‘guix describe’ won’t work:

--8<---------------cut here---------------start------------->8---
$ type -P guix
/home/ludo/.config/guix/current/bin/guix
$ guix describe
Generacio 171	Jan 11 2021 11:38:39	(nuna)
  guix 458cb25
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 458cb25b9e7e7c954f468023abea2bebb5d8c75b
$ ln -s $(type -P guix) /tmp
$ /tmp/guix describe
guix describe: error: failed to determine origin
hint: Perhaps this `guix' command was not obtained with `guix pull'? Its
version string is 458cb25b9e7e7c954f468023abea2bebb5d8c75b.
--8<---------------cut here---------------end--------------->8---

We should probably store proper provenance info directly in the ‘guix’
output, just like we store the commit ID in (guix config).

Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-04 12:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15 17:51 bug#45896: Non-pull ‘guix’ should know its channels Ludovic Courtès
2021-01-26 13:16 ` Ludovic Courtès
2021-01-27 21:53   ` Ludovic Courtès
2021-01-27 21:51 ` bug#45896: [PATCH 1/3] channels: Record 'guix' channel metadata in (guix config) Ludovic Courtès
2021-01-27 21:51   ` bug#45896: [PATCH 2/3] build: Add '--with-channel-commit' and related configure flags Ludovic Courtès
2021-01-27 21:51   ` bug#45896: [PATCH 3/3] gnu: guix: Pass the '--with-channel-commit' configure flag Ludovic Courtès
2021-02-04 12:46     ` bug#45896: Non-pull ‘guix’ should know its channels Ludovic Courtès
2021-01-27 21:53   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).