[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to prevent incomplete build results from being garbage collected
From: |
James Thomas |
Subject: |
Re: How to prevent incomplete build results from being garbage collected? |
Date: |
Sat, 16 Apr 2022 13:32:29 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.92 (gnu/linux) |
Mykola Nikishov wrote:
> Hi there,
>
> I'm trying to build a package that fails. In the meantime, I'd like to
> reclaim some disk space by collecting garbage. After that, all build
> results for such package are gone and rebuilding it next time just
> wastes bandwidth and CPU cycles by re-downloading and re-building the
> same stuff:
>
> #+begin_example
> guix build <PACKAGE>
> guix gc
> guix build <PACKAGE>
> #+end_example
>
> Using --root=FILE with guix build does not help, I suppose it would help
> only for successful build.
>
> How could I retain build results regardless if build was successful or
> not?
I guess you meant 'dependencies' where you said 'results'. So maybe run:
guix shell -D <package> -r <path>
...once to keep a profile with the dependencies registered as a root.
--