diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-04-24 13:41:38 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-05-10 17:02:57 +0200 |
| commit | 8ddc279254c066d650928ae6bdfd162eeafe37fd (patch) | |
| tree | 0696f3525208ed3848ceb2f12076d76015f8e1c3 /etc/news.scm | |
| parent | 03b2e7f34a7d4bf100a7ab2452dae3f8e9ace8dd (diff) | |
news: Add entry about downloading channel files.
* etc/news.scm: Add entry.
Change-Id: I026b6653de697666e2c177792ee879f7a508ded7
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #6745
Diffstat (limited to 'etc/news.scm')
| -rw-r--r-- | etc/news.scm | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/etc/news.scm b/etc/news.scm index b3325a169a4..8e5266a4886 100644 --- a/etc/news.scm +++ b/etc/news.scm | |||
| @@ -43,6 +43,72 @@ | |||
| 43 | (channel-news | 43 | (channel-news |
| 44 | (version 0) | 44 | (version 0) |
| 45 | 45 | ||
| 46 | (entry (commit "c9dcd203e5356f13b736d5be121fd61874be1a93") | ||
| 47 | (title | ||
| 48 | (en "@command{pull} and @command{time-machine} can download channel | ||
| 49 | files") | ||
| 50 | (fr "@command{pull} et @command{time-machine} peuvent télécharger des | ||
| 51 | fichiers canaux")) | ||
| 52 | (body | ||
| 53 | (en "The @command{guix pull} and @command{guix time-machine} can now | ||
| 54 | be passed a URL as their @option{-C} (or @option{--channels}) option. For | ||
| 55 | instance, the command below pulls from the latest successfully-evaluated | ||
| 56 | commit of the @code{master} branch: | ||
| 57 | |||
| 58 | @example | ||
| 59 | guix pull \\ | ||
| 60 | -C https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master | ||
| 61 | @end example | ||
| 62 | |||
| 63 | Alternatively, one may also specify a @uref{https://swhid.org, SWHID} that | ||
| 64 | points to a channel file: | ||
| 65 | |||
| 66 | @example | ||
| 67 | guix time-machine \\ | ||
| 68 | -C swh:1:cnt:ae02d8ba3538a385ee799e61cdd0dfc5e14a8d1b \\ | ||
| 69 | -- ... | ||
| 70 | @end example | ||
| 71 | |||
| 72 | To make that possible, channel files are now evaluated in an isolated | ||
| 73 | environment (a @dfn{sandbox}), which prevents them from evaluating arbitrary | ||
| 74 | code; if you have existing channel files that rely on \"non-standard\" | ||
| 75 | features, you may now need to pass @option{--unsafe-channel-evaluation} to | ||
| 76 | evaluate them. Furthermore, when fetching channels from a downloaded file, | ||
| 77 | only @dfn{trusted channels} are allowed---one may specify them in | ||
| 78 | @file{~/.config/guix/trusted-channels.scm}. | ||
| 79 | |||
| 80 | See @samp{info \"(guix)Invoking guix pull\"} for more information.") | ||
| 81 | (fr "Les commandes @command{guix pull} et @command{guix time-machine} | ||
| 82 | peuvent dorénavant prendre une URL pour l'option @option{-C} (ou | ||
| 83 | @option{--channels}). Par exemple, la commande ci-dessous tire la dernière | ||
| 84 | révision de la branch @code{master} à avoir été évaluée avec succès : | ||
| 85 | |||
| 86 | @example | ||
| 87 | guix pull \\ | ||
| 88 | -C https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master | ||
| 89 | @end example | ||
| 90 | |||
| 91 | On peut également spécifier un @uref{https://swhid.org, SWHID} qui pointe vers | ||
| 92 | un fichier canaux : | ||
| 93 | |||
| 94 | @example | ||
| 95 | guix time-machine \\ | ||
| 96 | -C swh:1:cnt:ae02d8ba3538a385ee799e61cdd0dfc5e14a8d1b \\ | ||
| 97 | -- ... | ||
| 98 | @end example | ||
| 99 | |||
| 100 | Pour permettre cela, les fichiers canaux sont maintenant évalués dans un | ||
| 101 | environnement isolé (un @dfn{bac à sable}), ce qui les empêche d'évaluer du | ||
| 102 | code arbitraire ; lorsqu'on a des fichiers canaux qui dépendent de | ||
| 103 | fonctionnalités « non standard », il peut dorénavant être nécessaire de passer | ||
| 104 | l'option @option{--unsafe-channel-evaluation} pour les évaluer. De plus, | ||
| 105 | lorsqu'un fichier canaux est téléchargé, seuls les @dfn{canaux de confiance} | ||
| 106 | sont admis---on peut les énumérer dans | ||
| 107 | @file{~/.config/guix/trusted-channels.scm}. | ||
| 108 | |||
| 109 | Voir @samp{info \"(guix.fr) Invoquer guix pull\"} pour plus | ||
| 110 | d'informations."))) | ||
| 111 | |||
| 46 | (entry (commit "a7c8e68dc51144a6d3981b770aca9c4897fc7c0c") | 112 | (entry (commit "a7c8e68dc51144a6d3981b770aca9c4897fc7c0c") |
| 47 | (title | 113 | (title |
| 48 | (en "Records can refer to inherited values of thunked fields") | 114 | (en "Records can refer to inherited values of thunked fields") |
