From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4LPrJXpbamKBRAEAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 11:16:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gJ/xJXpbamLxRwAAauVa8A (envelope-from ) for ; Thu, 28 Apr 2022 11:16:42 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 585A74088 for ; Thu, 28 Apr 2022 11:16:42 +0200 (CEST) Received: from localhost ([::1]:39168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk0GO-0006GY-O8 for larch@yhetil.org; Thu, 28 Apr 2022 05:16:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk0AR-0002bf-N8 for help-guix@gnu.org; Thu, 28 Apr 2022 05:10:35 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:51983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk0AO-0002Mk-Nl for help-guix@gnu.org; Thu, 28 Apr 2022 05:10:30 -0400 Received: by mail-wm1-x336.google.com with SMTP id q20so2564703wmq.1 for ; Thu, 28 Apr 2022 02:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=1wPGrwwzQN5lVNMoWH+LG2R+OWFSSN3DAwh97r61XQE=; b=YApKaDJqDjvfLP7THsMAquASZlCZImSm2lS25S6ysQFN5wqWIeO/QVmF9iNmm+nQgt AStLR2xF8/j3J45LlOCLtBzALpNbNcs6hR3XGA0L8QP5XGBEJdLZovsv2UTL1S8Kfo0L lBv1kAnpbOBimAH7iEdOelvfVsdTYm7Ag/etkULauLiMxa/U0o5NHp+ygicTRvmEW7kR XbCzVcE0NF7PAzWsaO/GDJolVdJme/5iHB+GtKwjKVHFioVmV/HXcVis5O4VaST2/a++ fqECm1oGbFlIjMtb3wFd9vuG7hMD3pXjh2fyrSWgObZgBQ1IhR1oZPZJ9juAE+16jpkh t+CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=1wPGrwwzQN5lVNMoWH+LG2R+OWFSSN3DAwh97r61XQE=; b=HCHomlFk+UC/66zjI3trf5NO9HP6UWxN8s2ziYBCxzsAJcCrVxB7CjzbsIE9iMkgbq MlNaScmEdT87RAd25XttbvDiQvWL5svNOjQLM5A4VvVhm2uCoK41zaND2RUPN/w94AB2 MX/Rj7zwexBmostuEkYyz+T7ba3ORWOQtvtf3By99yzxHmHRAFpILBbkkv///5iUPzve jfmE0jMAU+13VppH2D1LYI3yqggJxP6eJmpHzQWgQYH9xR7tUqEE9HKeG46IT56QJDDu AVdSfRmBNrpP9OrP4uKdssC33KQ4JFGOMveTCYCBXU4TKdi3fKxD/T/5luFiSRWAqnMw fvCA== X-Gm-Message-State: AOAM533EK7OdvQmF39+Ydzl8h1dmUZ2U3EXLo3MzfgoMUa5J3oAfldLK f5GpsbKO7/KxHZ8NqxBeH6IszuvT0Zk= X-Google-Smtp-Source: ABdhPJy5zXMoDVRB7GofZR8PrfqnJDwgPASOjH+4+jLlfHO6wi1uS5+FHVZb8Xs+cw8E2ZGyHahiuw== X-Received: by 2002:a05:600c:3551:b0:393:f269:2049 with SMTP id i17-20020a05600c355100b00393f2692049mr12631283wmq.37.1651137026716; Thu, 28 Apr 2022 02:10:26 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id r14-20020adfa14e000000b0020aeab110b8sm4620323wrr.74.2022.04.28.02.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 02:10:26 -0700 (PDT) From: zimoun To: James Thomas , Mykola Nikishov Subject: Re: How to prevent incomplete build results from being garbage collected? In-Reply-To: <87ilr9sbfu.fsf@gmx.net> References: <87tub11jdt.fsf@think> <87ilr9sbfu.fsf@gmx.net> Date: Thu, 28 Apr 2022 11:05:06 +0200 Message-ID: <86ee1hefy5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651137402; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1wPGrwwzQN5lVNMoWH+LG2R+OWFSSN3DAwh97r61XQE=; b=U9VtGrjPBJwxzkq42uQ5qnBm8y0YxQi9ekjENTofzrhxDSgEOCNLagQ+jncAP8xv5fSifL dBH3jasiA34pXM+IOwTxx4DIukfdEfdWVCw9p8gz8zmd2GKmAbNmUdY6NDxlf4ulAWtrgo sioJ1i8b7Wk0NebBEWx9CIjUnldfbvchgYfm7kJt12h8TtehXnkMEYTa3qgwFMTNKu0lI3 8VoIguus642XlFW7PrkSJmR5sinyrdzh1qRftwmOcX8rW8t412sS5WsOLDaVMZ2ZoXHEPy qKp9JWkVgOH3en08gd+HgroONJKSF/iljcMgEKFBIctPqvy3fdcQHmHUelRh2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651137402; a=rsa-sha256; cv=none; b=aQkBvKDZociNCBVor1iaMsCGHrZgGzJqLm7qiS0XK9mjtpEuKuRnpbZRUrUKaYwnCNuVRh 7PzBb7GjXkfLLdlgC5SkiktzWAJIbyS8rPBjtRe1VZ/IqTBcPC/jgfvw6dOXHzruzPpinS Or15Fx0rCHfji/SAHh3FgDE0W+A3CUTTCLuZPZSacVfFQBk/kMpEGdWv1voQv+w0tYWwlf b78YRItTEVt8DTwD5nCLBlnpmlnKjUWh9OoLYw/fUyi7EQaQYOTbuTbkQqgVmaM4ThAcsX XgE0ZA/rVbeyXgSGX6cUtHV+WdAc1zvCr5U/pfyX/9Dpjh69XfXMYxKsE6Yq5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YApKaDJq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YApKaDJq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 585A74088 X-Spam-Score: -8.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: K4AyK+mLupmH Hi, On Sat, 16 Apr 2022 at 13:32, James Thomas wrote: > Mykola Nikishov wrote: >> #+begin_example >> guix build >> guix gc >> guix build >> #+end_example [...] > guix shell -D -r In addition, you could use =E2=80=9Cguix gc -F 10G=E2=80=9D or whatever spa= ce you would like to reclaim. Because =E2=80=9Cguix gc=E2=80=9D delete all dead items w= hereas the option =E2=80=99-F=E2=80=99 (or =E2=80=99-C=E2=80=99) tries to determine wh= ich items based on dates (I guess). Sometimes, I also do: for item in $(guix gc --list-dead | grep ) do guix gc -D $item done and you can pipe instead of for-looping. :-) Hope that helps, simon