From: zimoun <zimon.toutoune@gmail.com>
To: Nicolas Graves <ngraves@ngraves.fr>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Branch with only available substitutes ?
Date: Mon, 10 Jan 2022 11:09:57 +0100 [thread overview]
Message-ID: <CAJ3okZ2zJsfT4CHV8eXAz5hY8Zm144HAQTpMOqo7vLvZcJA85g@mail.gmail.com> (raw)
In-Reply-To: <87tueczl0o.fsf@ngraves.fr>
Hi,
In case you missed it:
<https://guix.gnu.org/en/manual/devel/en/guix.html#Channels-with-Substitutes>
which does not solve the issue but helps. :-)
On Sun, 9 Jan 2022 at 22:10, Nicolas Graves via Development of GNU
Guix and the GNU System distribution. <guix-devel@gnu.org> wrote:
> I find myself often waiting for heavy packages (ungoogled-chromium,
> cargo...) to be built as substitutes before updating my system and I
> find it a bit long to my personal taste.
>
> Would it be possible to add a branch in guix sources following only
> available substitutes, so that each time I pull, I can immediatly
> and quickly update. Or would that need to stay as someone's personal
> project ?
Adding what you are proposing would not change your "complaint". ;-)
Each time you would pull, you would stay on the same revision because
the substitutes would not be ready yet and so no quick update. You
would have to wait and run again "guix pull" later, probably staying
on the same revision because the substitutes would not be ready. In
the meantime, you would miss new features or new security fixes for
others of some packages you are using.
However, I agree that's annoying. Some time ago (before the link
above), I used a script along these lines:
--8<---------------cut here---------------start------------->8---
#!/bin/bash
# url-cache-directory from guix/git.scm
# pjmkgl... = hash("https://git.savannah.gnu.org/git/guix.git")
CACHE=~/.cache/guix/checkouts
CHECKOUT=${CACHE}/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
printf "Updating local checkout:\n'$CHECKOUT'..."
git -C $CHECKOUT fetch -q
echo " done."
guix pull --commit=$(git -C $CHECKOUT \
log \
--before=$(date --date='2 weeks ago' +%Y-%m-%d) \
--format="%h" | head -n1) \
$@
echo "done."
exit 0
--8<---------------cut here---------------end--------------->8---
to lag by 2 week behind origin/master and so be almost sure to have
the substitutes -- if their build success-ed. ;-)
Well, yeah it's annoying to run "guix pull", check with "guix
weather", and depending on the result upgrade or not -- note that the
exit status cannot be used [1]. When all that could be automatized.
#47929, as Mathieu said, is grouping "guix pull" and "guix weather".
Maybe we could imagine an option to "guix upgrade" coupling "guix
weather"; somehow the converse of 'no-substitutes' or the converse of
'fallback', i.e., do not try to locally build if the substitutes is
not available. I do not know.
1: <https://yhetil.org/guix/YOdhd7FfMOvKjTQe@jasmine.lan/>
Cheers,
simon
next prev parent reply other threads:[~2022-01-10 10:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-09 20:44 Branch with only available substitutes ? Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2022-01-09 23:35 ` Maxime Devos
2022-01-10 8:11 ` Mathieu Othacehe
2022-01-10 15:04 ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2022-01-10 10:09 ` zimoun [this message]
2022-01-10 15:16 ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ3okZ2zJsfT4CHV8eXAz5hY8Zm144HAQTpMOqo7vLvZcJA85g@mail.gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ngraves@ngraves.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.