>lun. 20 juil. 2026 at 11:01, Gabriel Wicki <[email protected]> wrote:
> Hi there!
>
> I've been wondering for a while why my Guix checkout is almost
> completely rebuilt even though I only rebase a commit or two onto a
> freshly built master branch checkout.
>
> My workflow is as follows:
> - I checkout the master branch.
> - I pull.
> - I build it.
> - I checkout some PR (through agit).
> - I rebase on the freshly built master checkout.
> - I rebuild (because if I want to push it is being rebuilt anyways, so
> rebuilding it manually shows problems earlier).
>
> A full rebuild is being done, running ./configure and re-compiling most
> (if not all) Scheme files.
>
> I guess this comes from the fact that checking out an old PR changes
> mod-times on many files? How do others deal with this? I am spending
> way too much time waiting for `guix shell -D guix -- make -j$(nproc)` to
> finish.
I usually do a
git rebase HEAD pulls/pr/9689
to avoid switching / checking out different branches. Otherwise, as you
say, part of your life sinks on building .so files.
Otherwise, you can create a new worktree, build the whole thing again,
but just once. This is helpful for more permanent topic branches.
C.
signature.asc
Description: PGP signature
