summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-04-24 13:41:38 +0200
committerLudovic Courtès <ludo@gnu.org>2026-05-10 17:02:57 +0200
commit8ddc279254c066d650928ae6bdfd162eeafe37fd (patch)
tree0696f3525208ed3848ceb2f12076d76015f8e1c3 /etc
parent03b2e7f34a7d4bf100a7ab2452dae3f8e9ace8dd (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')
-rw-r--r--etc/news.scm66
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
49files")
50 (fr "@command{pull} et @command{time-machine} peuvent télécharger des
51fichiers canaux"))
52 (body
53 (en "The @command{guix pull} and @command{guix time-machine} can now
54be passed a URL as their @option{-C} (or @option{--channels}) option. For
55instance, the command below pulls from the latest successfully-evaluated
56commit of the @code{master} branch:
57
58@example
59guix pull \\
60 -C https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master
61@end example
62
63Alternatively, one may also specify a @uref{https://swhid.org, SWHID} that
64points to a channel file:
65
66@example
67guix time-machine \\
68 -C swh:1:cnt:ae02d8ba3538a385ee799e61cdd0dfc5e14a8d1b \\
69 -- ...
70@end example
71
72To make that possible, channel files are now evaluated in an isolated
73environment (a @dfn{sandbox}), which prevents them from evaluating arbitrary
74code; if you have existing channel files that rely on \"non-standard\"
75features, you may now need to pass @option{--unsafe-channel-evaluation} to
76evaluate them. Furthermore, when fetching channels from a downloaded file,
77only @dfn{trusted channels} are allowed---one may specify them in
78@file{~/.config/guix/trusted-channels.scm}.
79
80See @samp{info \"(guix)Invoking guix pull\"} for more information.")
81 (fr "Les commandes @command{guix pull} et @command{guix time-machine}
82peuvent dorénavant prendre une URL pour l'option @option{-C} (ou
83@option{--channels}). Par exemple, la commande ci-dessous tire la dernière
84révision de la branch @code{master} à avoir été évaluée avec succès :
85
86@example
87guix pull \\
88 -C https://ci.guix.gnu.org/eval/latest/channels.scm?spec=master
89@end example
90
91On peut également spécifier un @uref{https://swhid.org, SWHID} qui pointe vers
92un fichier canaux :
93
94@example
95guix time-machine \\
96 -C swh:1:cnt:ae02d8ba3538a385ee799e61cdd0dfc5e14a8d1b \\
97 -- ...
98@end example
99
100Pour permettre cela, les fichiers canaux sont maintenant évalués dans un
101environnement isolé (un @dfn{bac à sable}), ce qui les empêche d'évaluer du
102code arbitraire ; lorsqu'on a des fichiers canaux qui dépendent de
103fonctionnalités « non standard », il peut dorénavant être nécessaire de passer
104l'option @option{--unsafe-channel-evaluation} pour les évaluer. De plus,
105lorsqu'un fichier canaux est téléchargé, seuls les @dfn{canaux de confiance}
106sont admis---on peut les énumérer dans
107@file{~/.config/guix/trusted-channels.scm}.
108
109Voir @samp{info \"(guix.fr) Invoquer guix pull\"} pour plus
110d'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")