unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to always keep build tree when run guix build.
@ 2024-01-16  6:21 Feng Shu
  2024-01-17  8:21 ` Adam Faiz
  0 siblings, 1 reply; 5+ messages in thread
From: Feng Shu @ 2024-01-16  6:21 UTC (permalink / raw)
  To: guix-devel


Hello:

  How to always keep build tree when run guix build, at the moment, I 
use --keep-failed, but it will remove build tree when build success, the
problem is that build success alway not right build success :-), I need
go to build tree to check some thing.

Thanks!


-- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to always keep build tree when run guix build.
@ 2024-01-17  8:21 ` Adam Faiz
  2024-01-17  8:34   ` Efraim Flashner
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Adam Faiz @ 2024-01-17  8:21 UTC (permalink / raw)
  To: tumashu; +Cc: guix-devel

Hello,

> Hello:
> 
>   How to always keep build tree when run guix build, at the moment, I 
> use --keep-failed, but it will remove build tree when build success, the
> problem is that build success alway not right build success :-), I need
> go to build tree to check some thing.
> 
> Thanks!
> 
> 
> -- 

You can add the `--cache-failures` option when starting the guix-daemon, which tells it to keep the build failures by default.
It's explained in more detail in the "Invoking guix-daemon" section of the Guix manual:
https://guix.gnu.org/en/manual/devel/en/html_node/Invoking-guix_002ddaemon.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to always keep build tree when run guix build.
  2024-01-17  8:21 ` Adam Faiz
@ 2024-01-17  8:34   ` Efraim Flashner
  2024-01-17  8:42   ` Feng Shu
  2024-01-17 10:08   ` Tomas Volf
  2 siblings, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2024-01-17  8:34 UTC (permalink / raw)
  To: Adam Faiz; +Cc: tumashu, guix-devel

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

On Wed, Jan 17, 2024 at 04:21:05PM +0800, Adam Faiz wrote:
> Hello,
> 
> > Hello:
> > 
> >   How to always keep build tree when run guix build, at the moment, I 
> > use --keep-failed, but it will remove build tree when build success, the
> > problem is that build success alway not right build success :-), I need
> > go to build tree to check some thing.
> > 
> > Thanks!
> > 
> > 
> > -- 
> 
> You can add the `--cache-failures` option when starting the guix-daemon, which tells it to keep the build failures by default.
> It's explained in more detail in the "Invoking guix-daemon" section of the Guix manual:
> https://guix.gnu.org/en/manual/devel/en/html_node/Invoking-guix_002ddaemon.html

'--cache-failures' keeps track of build failures and then refuses to
build that derivation again if it's already known to fail.  I don't
think there's something like '--keep-failed' for guix-daemon.

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to always keep build tree when run guix build.
  2024-01-17  8:21 ` Adam Faiz
  2024-01-17  8:34   ` Efraim Flashner
@ 2024-01-17  8:42   ` Feng Shu
  2024-01-17 10:08   ` Tomas Volf
  2 siblings, 0 replies; 5+ messages in thread
From: Feng Shu @ 2024-01-17  8:42 UTC (permalink / raw)
  To: Adam Faiz; +Cc: guix-devel

Adam Faiz <adam.faiz@disroot.org> writes:

> Hello,
>
>> Hello:
>> 
>>   How to always keep build tree when run guix build, at the moment, I 
>> use --keep-failed, but it will remove build tree when build success, the
>> problem is that build success alway not right build success :-), I need
>> go to build tree to check some thing.
>> 
>> Thanks!
>> 
>> 
>> -- 
>
> You can add the `--cache-failures` option when starting the guix-daemon, which tells it to keep the build failures by default.
> It's explained in more detail in the "Invoking guix-daemon" section of the Guix manual:
> https://guix.gnu.org/en/manual/devel/en/html_node/Invoking-guix_002ddaemon.html

Thanks, but I want to a way to keep build tree wlways, no matter build fail or success.


-- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to always keep build tree when run guix build.
  2024-01-17  8:21 ` Adam Faiz
  2024-01-17  8:34   ` Efraim Flashner
  2024-01-17  8:42   ` Feng Shu
@ 2024-01-17 10:08   ` Tomas Volf
  2 siblings, 0 replies; 5+ messages in thread
From: Tomas Volf @ 2024-01-17 10:08 UTC (permalink / raw)
  To: Adam Faiz; +Cc: tumashu, guix-devel

[-- Attachment #1: Type: text/plain, Size: 958 bytes --]

On 2024-01-17 16:21:05 +0800, Adam Faiz wrote:
> Hello,
> 
> > Hello:
> > 
> >   How to always keep build tree when run guix build, at the moment, I 
> > use --keep-failed, but it will remove build tree when build success, the
> > problem is that build success alway not right build success :-), I need
> > go to build tree to check some thing.
> > 
> > Thanks!
> > 
> > 
> > -- 
> 
> You can add the `--cache-failures` option when starting the guix-daemon, which tells it to keep the build failures by default.
> It's explained in more detail in the "Invoking guix-daemon" section of the Guix manual:
> https://guix.gnu.org/en/manual/devel/en/html_node/Invoking-guix_002ddaemon.html
>

I think the question was how to keep all build trees, including the build trees
from successful builds.

Have a nice day,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-17 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16  6:21 How to always keep build tree when run guix build Feng Shu
2024-01-17  8:21 ` Adam Faiz
2024-01-17  8:34   ` Efraim Flashner
2024-01-17  8:42   ` Feng Shu
2024-01-17 10:08   ` Tomas Volf

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).