From: Skyler Ferris <skyvine@protonmail.com>
To: Carlo Zancanaro <carlo@zancanaro.id.au>
Cc: help-guix@gnu.org
Subject: Re: Proper use of `guix build X --rounds=2`
Date: Mon, 19 Feb 2024 18:48:30 +0000 [thread overview]
Message-ID: <66a474e1-bc23-4e28-979b-34b5f0e30710@protonmail.com> (raw)
In-Reply-To: <87r0h9gxvd.fsf@zancanaro.id.au>
On 2/18/24 15:23, Carlo Zancanaro wrote:
> I'm not sure if this is considered a bug or not, but the solution to
> your problem is to use --check. Using your test file running:
>
> guix build -f test.scm --check
>
> should run the build one time, and compare the output with what is in
> the store. Then:
>
> guix build -f test.scm --check --rounds=2
>
> should run the build twice, and check against the output that is already
> in the store.
Thanks for clarifying! Now that you've pointed out this distinction, it
makes sense and shouldn't cause significant problems for me moving forward.
> It's a bit confusing, but --rounds only applies if there is actually a
> build to do, whereas --check forces a build and compares against the
> store.
Yeah, the interface does seem a little confusing. There's probably a
more intuitive way to present this, but I don't know why the options
ended up this way to begin them or what the implications of a change
would be. I do see now that the manual notes in the `--check` section
that one of the uses is to check that a build is deterministic. I have
some understanding of `guix challenge`, but only thought about it for
the purpose of checking whether or not the substitute server is
providing trustworthy builds not for checking the package itself, so my
mind didn't go there when thinking about this problem.
prev parent reply other threads:[~2024-02-19 18:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-18 19:06 Proper use of `guix build X --rounds=2` Skyler Ferris
2024-02-18 23:23 ` Carlo Zancanaro
2024-02-19 18:48 ` Skyler Ferris [this message]
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=66a474e1-bc23-4e28-979b-34b5f0e30710@protonmail.com \
--to=skyvine@protonmail.com \
--cc=carlo@zancanaro.id.au \
--cc=help-guix@gnu.org \
/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.