mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
pull: Suggest running 'hash guix' if needed.
Fixes <https://bugs.gnu.org/33647>. Suggested by Diego Nicola Barbato <dnbarbato@posteo.de>. * guix/scripts/pull.scm (build-and-install): Before returning, display a hint if (which "guix") is not in PROFILE.
This commit is contained in:
parent
9fe3f11398
commit
3bbd6919bd
1 changed files with 12 additions and 2 deletions
|
@ -34,11 +34,12 @@ (define-module (guix scripts pull)
|
|||
#:use-module (guix channels)
|
||||
#:autoload (guix inferior) (open-inferior)
|
||||
#:use-module (guix scripts build)
|
||||
#:autoload (guix build utils) (which)
|
||||
#:use-module (guix git)
|
||||
#:use-module (git)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module ((guix scripts package) #:select (build-and-use-profile))
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module ((gnu packages base) #:select (canonical-package))
|
||||
#:use-module (gnu packages guile)
|
||||
#:use-module ((gnu packages bootstrap)
|
||||
#:select (%bootstrap-guile))
|
||||
|
@ -191,7 +192,16 @@ (define update-profile
|
|||
#:hooks %channel-profile-hooks
|
||||
#:dry-run? dry-run?)
|
||||
(munless dry-run?
|
||||
(return (display-profile-news profile))))))
|
||||
(return (display-profile-news profile))
|
||||
(match (which "guix")
|
||||
(#f (return #f))
|
||||
(str
|
||||
(let ((command (string-append profile "/bin/guix")))
|
||||
(unless (string=? command str)
|
||||
(display-hint (format #f (G_ "After setting @code{PATH}, run
|
||||
@command{hash guix} to make sure your shell refers to @file{~a}.")
|
||||
command)))
|
||||
(return #f))))))))
|
||||
|
||||
(define (honor-lets-encrypt-certificates! store)
|
||||
"Tell Guile-Git to use the Let's Encrypt certificates."
|
||||
|
|
Loading…
Reference in a new issue