mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
pull: Don't trigger 'hash guix' hint needlessly.
Previously if ~/.config/guix/current/bin was in $PATH, we'd still suggest to run 'hash guix' because we'd compare (which "guix") against /var/guix/profiles/per-user/…. * guix/scripts/pull.scm (build-and-install): Check whether (which "guix") matches PROFILE or its user-friendly variant.
This commit is contained in:
parent
3a8c4860fb
commit
d1d72830f2
1 changed files with 5 additions and 3 deletions
|
@ -197,11 +197,13 @@ (define update-profile
|
|||
(match (which "guix")
|
||||
(#f (return #f))
|
||||
(str
|
||||
(let ((command (string-append profile "/bin/guix")))
|
||||
(unless (string=? command str)
|
||||
(let ((new (map (cut string-append <> "/bin/guix")
|
||||
(list (user-friendly-profile profile)
|
||||
profile))))
|
||||
(unless (member str new)
|
||||
(display-hint (format #f (G_ "After setting @code{PATH}, run
|
||||
@command{hash guix} to make sure your shell refers to @file{~a}.")
|
||||
command)))
|
||||
(first new))))
|
||||
(return #f))))))))
|
||||
|
||||
(define (honor-lets-encrypt-certificates! store)
|
||||
|
|
Loading…
Reference in a new issue