doc: Clarify that package transformations are preserved across upgrades.

Reported by pineapples on #guix.

This is a followup to 8e1907a724.

* doc/guix.texi (Invoking guix package): Remove sentence that says that
package transformations are lost upon upgrading and explicitly say the
opposite.
This commit is contained in:
Ludovic Courtès 2021-01-22 17:29:35 +01:00
parent 898e137fc8
commit 4de829a223
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 5 deletions

View File

@ -3576,11 +3576,8 @@ Consequently, this command must be used with care.
Finally, since @command{guix package} may actually start build
processes, it supports all the common build options (@pxref{Common Build
Options}). It also supports package transformation options, such as
@option{--with-source} (@pxref{Package Transformation Options}).
However, note that package transformations are lost when upgrading; to
preserve transformations across upgrades, you should define your own
package variant in a Guile module and add it to @env{GUIX_PACKAGE_PATH}
(@pxref{Defining Packages}).
@option{--with-source}, and preserves them across upgrades
(@pxref{Package Transformation Options}).
@node Substitutes
@section Substitutes