mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
pull: Create a version 3 manifest.
This makes the profile readable by older Guix instances. This is a
followup to c9fbd40785
.
Fixes <https://issues.guix.gnu.org/57306>.
Reported by Arun Isaac <arunisaac@systemreboot.net>.
* guix/profiles.scm (%manifest-format-version): Export.
* guix/scripts/package.scm (build-and-use-profile): Add #:format-version
and pass it to 'profile-derivation'.
* guix/scripts/pull.scm (build-and-install): Pass #:format-version 3.
This commit is contained in:
parent
270e1b9e1e
commit
67a6828b2b
3 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,7 @@ (define-module (guix profiles)
|
|||
packages->manifest
|
||||
ca-certificate-bundle
|
||||
%default-profile-hooks
|
||||
%manifest-format-version
|
||||
profile-derivation
|
||||
profile-search-paths
|
||||
load-profile
|
||||
|
|
|
@ -145,6 +145,7 @@ (define* (build-and-use-profile store profile manifest
|
|||
dry-run?
|
||||
(hooks %default-profile-hooks)
|
||||
allow-collisions?
|
||||
(format-version %manifest-format-version)
|
||||
bootstrap?)
|
||||
"Build a new generation of PROFILE, a file name, using the packages
|
||||
specified in MANIFEST, a manifest object. When ALLOW-COLLISIONS? is true,
|
||||
|
@ -154,6 +155,7 @@ (define* (build-and-use-profile store profile manifest
|
|||
(profile-derivation manifest
|
||||
#:allow-collisions? allow-collisions?
|
||||
#:hooks (if bootstrap? '() hooks)
|
||||
#:format-version format-version
|
||||
#:locales? (not bootstrap?))))
|
||||
(prof (derivation->output-path prof-drv)))
|
||||
|
||||
|
|
|
@ -452,6 +452,9 @@ (define guix-command
|
|||
(mlet %store-monad ((manifest (channel-instances->manifest instances)))
|
||||
(mbegin %store-monad
|
||||
(update-profile profile manifest
|
||||
;; Create a version 3 profile so that it is readable by
|
||||
;; old instances of Guix.
|
||||
#:format-version 3
|
||||
#:hooks %channel-profile-hooks)
|
||||
|
||||
(return
|
||||
|
|
Loading…
Reference in a new issue