From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 4F1sBWW0i2IpTAAAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 18:20:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gLR1BWW0i2JpPgAA9RJhRA (envelope-from ) for ; Mon, 23 May 2022 18:20:53 +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 C44A4148DE for ; Mon, 23 May 2022 18:20:52 +0200 (CEST) Received: from localhost ([::1]:51408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntAnc-0004C7-0J for larch@yhetil.org; Mon, 23 May 2022 12:20:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntAnQ-0004AQ-Rb for guix-devel@gnu.org; Mon, 23 May 2022 12:20:40 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:35419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntAnP-0004i5-5L for guix-devel@gnu.org; Mon, 23 May 2022 12:20:40 -0400 Received: by mail-wr1-x42d.google.com with SMTP id r23so22154436wrr.2 for ; Mon, 23 May 2022 09:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=20+xO2f9ICm1fFwalxfF21CE9v+flNvdz6Om2oftMQg=; b=XgIc6uM2E9vtd1cEISU8sozSUIvoD2XrOrVgRTwDzruOWB/g1LKHZaq1cjkrcGjHvu ZqvfWDSfHgeSQmyx4FnSnaM9iGGQCTlrwiN2Row9ig7J9Y5FJkB0Sghml5JrttBXaGJO a6fRKrMPFHmiYbigthgu1Zgxz3UT13uKq9Eq75ByldobTR6cxTn5i8/vwJQ25oR9triz IoomM9tlEEDNL11l9snVNPttkwDBFQS6DaN9shaQa3m0V5IXf1txJJkRSJTZb40WzmPW stS9EDk1ZSxjT9sIbHTX4kn1IYEDDHifLWCbIABGcxR2Ya1ufmcdtJpK1GTy2XVOl7W3 J8yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=20+xO2f9ICm1fFwalxfF21CE9v+flNvdz6Om2oftMQg=; b=tyfeIw/Vg42ybLgGRx/w3ELpepBGA5alTRXacg7XIcYEK01gP2wOLXMgFndUNmyB2s YAagf9SeONBHzSBm0m5/DJhoIvZwZz/SAvJwq6N7aeLEXejpysUBuyeZAun3FhXV3C0m qFRcHAwFJNWssSGm2RprvLjXrhk/4WcFPjWnFnegOt/DtCI9lZgw9EuM//doYAROBVqC gQPZGXsZX8L3MEAU3OGMKp4B9uBqIa4LNk3N5+Z/qHflcgsuXe3PKYGL/HBI7UdId5rM 6vqzpYn8hKWX4KySBYb2+L2Rej225Qk5xTH7+hFSs1DWQRwr5c7X/QSEpI5o8v1hAkMn BbTQ== X-Gm-Message-State: AOAM532LOfwCiuct3hE/mW+OQpO9yClt6j9yHnYzVrCEM9qlt/RHMhR+ NNWQHXJ40HsFj/jGxMmrvgyUuSaYwBo= X-Google-Smtp-Source: ABdhPJwIXU0en1iGXVo1agfGZwOOaGhHKbms+6KvCoY/oICsvTQXJ+JFYLjJlnAfMb1aAz5RHtX5YA== X-Received: by 2002:adf:f38a:0:b0:20e:58fe:fdec with SMTP id m10-20020adff38a000000b0020e58fefdecmr19903751wro.468.1653322835593; Mon, 23 May 2022 09:20:35 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b0039749256d74sm4037789wms.2.2022.05.23.09.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:20:35 -0700 (PDT) From: zimoun To: Liliana Marie Prikler , Guix Devel Subject: Re: wishlist: =?utf-8?B?4oCccmVwYWNr4oCd?= generations history of profile In-Reply-To: References: <86wnegb9it.fsf@gmail.com> Date: Mon, 23 May 2022 18:20:25 +0200 Message-ID: <86v8twdxva.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::42d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42d.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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1653322852; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=20+xO2f9ICm1fFwalxfF21CE9v+flNvdz6Om2oftMQg=; b=qxD4c/NvrOz+nzoed92/2K4QzzMFKnpknwwfsUbW2Yc94L+pCNbTaawfHbvrLtWXcoyb/+ oD1XKKKqHBwiwFVsFefQNGG4u7weKInDVoouANIQzULgqaFONxTed8skaQmdM6cXobVY9I a2u729YQO6wSQkKcqAk8WlPaBmyLNXn8FwHpDX0shT7jXXb46dysM7SRsQyqT1ClNsbApZ zxV7+phLpUCOTE9Hu5apfh5RaPQyY7KYj9Q99iY/yy1cXhRGwL50l1Bcy1A2ldLk2Zh97k 5DIfRODv+iHgtfXTx+4R6V4BViQC3aZXKmZmT+HjOWlVeupR10UGhhR5Mvzveg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653322852; a=rsa-sha256; cv=none; b=Iuy26zj20TWi1mgBsDQoZ+maRnX2+fpPNsLw0U+NAEU1fHYpj50a9ST2UhMScGSCkoa2Uw 8Qcq+N5C6liOUuxNndja9lTIlNbnFKrkbrFpL4ClGuFdIVHogsw7fO+fGJZJnOzAVpzbNP WcIdv8ycqXdAgPKAZratEwhVRW2Y8shL7MO+1c7bnAXVoOn5JMMJuI/xtxi2DwUEzEakRE /wHyQAhBTXjV4eryA4M2doF5lfvnYZxw6p8kyhb1kpu21iaScez8VSF/2WQNtq2F+ncNJS shgVmjXqScUX2zNJFR98cwMIXuFnyfHe0Q2TvXIzRnv5euJyueeFKnJ4FQnGvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XgIc6uM2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XgIc6uM2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C44A4148DE X-Spam-Score: -5.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: U/pXL6yqXRqX Hi Liliana, On Sat, 21 May 2022 at 13:30, Liliana Marie Prikler wrote: > I think we should implement this as a single --keep=3Dstuff operator, [...] > I'm not so sure if I understand the generation bit correctly, but with > the switch proposed above, you'd --keep=3Dgenerations, which keeps just > enough data to make switch-generation work "lazily". >From my understanding, this operator would add complexity and I am not convinced that being so fine-grained is necessary. Basically, the workflow is: guix package -m foo.scm guix package -m bar.scm guix pull guix package -m baz.scm guix gc -d 3m guix pull guix package -m bong.scm and =E2=80=9Cguix gc=E2=80=9D potentially remove all of the generation =E2= =80=9Cfoo.scm=E2=80=9D (say generation 1). Instead, I would like to remove the content only to save space but keep the meta (basically the internal manifest). This way, the store would not fully contain the items but it would be possible to have, guix package --switch-generation=3D1 rebuilding the missing items for the generation 1. Today, it is not possible to keep the history of generations and delete the store items of old generations. I am proposing to have an option for =E2=80=9Cguix gc=E2=80=9D allowing that: keep the history and the abili= ty to switch and in the same time remove the old items. Cheers, simon