diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 9ba7780239..38c9bdb7d1 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -140,9 +140,16 @@ (path (string-append json "/share/guile/site/2.0:" gnutls "/share/guile/site/2.0"))) + + ;; Ignore user settings so that a bogus + ;; GUILE_LOAD_COMPILED_PATH does not prevent use of + ;; 'guix', notably when it contains entries pointing to + ;; incompatible .go files as reported at + ;; . (wrap-program (string-append out "/bin/guix") - `("GUILE_LOAD_PATH" ":" prefix (,path)) - `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,path))) + `("GUILE_LOAD_PATH" ":" = (,path)) + `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))) + #t)))))) (native-inputs `(("pkg-config" ,pkg-config) ("emacs" ,emacs-no-x))) ;for guix.el