all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: Skyler Ferris <skyvine@protonmail.com>
Cc: help-guix@gnu.org
Subject: Re: Proper use of `guix build X --rounds=2`
Date: Mon, 19 Feb 2024 10:23:50 +1100	[thread overview]
Message-ID: <87r0h9gxvd.fsf@zancanaro.id.au> (raw)
In-Reply-To: <2d797b5b-5bc7-4f68-8287-be148ba6bacd@protonmail.com> (Skyler Ferris's message of "Sun, 18 Feb 2024 19:06:43 +0000")

Hi Skyler,

On Sun, Feb 18 2024, Skyler Ferris wrote:
> Am I using the `--rounds` flag wrong, do I misunderstand this tool, or 
> is this actually a bug?

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.

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.

Carlo


  reply	other threads:[~2024-02-18 23:24 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 [this message]
2024-02-19 18:48   ` Skyler Ferris

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=87r0h9gxvd.fsf@zancanaro.id.au \
    --to=carlo@zancanaro.id.au \
    --cc=help-guix@gnu.org \
    --cc=skyvine@protonmail.com \
    /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.