* guix pull --commit and custom channel ?
@ 2019-05-14 16:44 zimoun
2019-05-14 16:55 ` Marius Bakke
0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2019-05-14 16:44 UTC (permalink / raw)
To: Guix Devel
Dear,
When speaking about "Scientific Reproducibilty", one would roll-back
to a previous state of Guix. And it is possible with `guix pull
--commit=<hash>'.
(noting it is only possible for not too old states, say v0.15 or post-inferior?)
However, it is not possible to roll-back the state of a custom
channel. Or I have missed something.
The UI should be: guix pull --commit=channel1:hash1 --commit=channel2:hash2
or guix pull --commit=channel1:hash1,channel2:hash2
Moreover, is it possible to roll-back with a manifest containing
several custom channels ?
I imagine something such that:
guix describe > commits.txt
then months (or years?) later:
guix pull --manifest=commits.txt
In other words, continue ideas proposed here [1].
[1] https://www.gnu.org/software/guix/blog/2018/multi-dimensional-transactions-and-rollbacks-oh-my/
What do you think ?
All the best,
simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: guix pull --commit and custom channel ?
2019-05-14 16:44 guix pull --commit and custom channel ? zimoun
@ 2019-05-14 16:55 ` Marius Bakke
2019-05-14 17:05 ` zimoun
0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2019-05-14 16:55 UTC (permalink / raw)
To: zimoun, Guix Devel
[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]
zimoun <zimon.toutoune@gmail.com> writes:
> Dear,
>
> When speaking about "Scientific Reproducibilty", one would roll-back
> to a previous state of Guix. And it is possible with `guix pull
> --commit=<hash>'.
>
> (noting it is only possible for not too old states, say v0.15 or post-inferior?)
>
>
> However, it is not possible to roll-back the state of a custom
> channel. Or I have missed something.
>
> The UI should be: guix pull --commit=channel1:hash1 --commit=channel2:hash2
> or guix pull --commit=channel1:hash1,channel2:hash2
I don't think `guix pull` exposes these options through the CLI yet, but
you can specify exact commit(s) in channels.scm.
> Moreover, is it possible to roll-back with a manifest containing
> several custom channels ?
>
> I imagine something such that:
> guix describe > commits.txt
> then months (or years?) later:
> guix pull --manifest=commits.txt
This is already possible:
$ guix describe -f channels > my-channels.scm
$ guix pull -C my-channels.scm
HTH!
Marius
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-14 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-14 16:44 guix pull --commit and custom channel ? zimoun
2019-05-14 16:55 ` Marius Bakke
2019-05-14 17:05 ` zimoun
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).