From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 KAyTOPELlWIG5wAAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 20:24:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GCajN/ELlWJkHgAAG6o9tA (envelope-from ) for ; Mon, 30 May 2022 20:24:49 +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 8120F10B95 for ; Mon, 30 May 2022 20:24:49 +0200 (CEST) Received: from localhost ([::1]:52164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvk4O-00076w-L7 for larch@yhetil.org; Mon, 30 May 2022 14:24:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvj2k-0007Dd-Pg for guix-devel@gnu.org; Mon, 30 May 2022 13:19:02 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:53051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvj2j-0001Vq-8F; Mon, 30 May 2022 13:19:02 -0400 Received: by mail-wm1-x329.google.com with SMTP id p19so6777115wmg.2; Mon, 30 May 2022 10:19:00 -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=37qe4DuPAar6Z5o6QBGjtDQ2UYj88ulO9Jze4Tjl/c0=; b=CO88qQb+yJD0udmu8ujkeJTMiHgc+Cz/atDODSFBjl0Yq8ejjMBJ4YPmlUbPvHRFCN MNuKBdGB4AM4+ZXCqdbDCuZUR03eKxiedqIL/tSJHGV0MZW/tZ8MOslkfI3mWb2gizTc GMAe/tz4GI2BZ2eSI8ASznNr8qK9rUQURZv+iTRxqx+IZeU/HJdaRh/z8EG+zT3lQ0e4 0Ipw+/drfThRTkUt2+WSDHBzRkhMyEsf68QXUDqK/+QxV9ZnEDWAKbG53tbIGvCy+35r Br/OFCb4/Y/oOSayR3dxRXmPzdGHPLSsrE77MTy0mvxWco4OsFbbSl8XSdKexCOnKbb5 l8iQ== 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=37qe4DuPAar6Z5o6QBGjtDQ2UYj88ulO9Jze4Tjl/c0=; b=EXqiXximjQNjxgn2TThJ1nJrLX5OsjUPgeKjEDd+tkooljc5t/xAGeWmn6go8DC8NN 7Fazd+/76/x68TNcqAU8clkKGHk/BACZ4dRg7ecdwvkhYHKgA6W0MFP4TtD9InpJHd1B 3ytYKya4JWnW5fEEwZ8kfF8e3WuNb781xOY17aueiD3J3R6vztZ/ASkG431t/Kb1lY4T AphdJOTa11W9qo0lgCyCHaw3xgJWv+wij1HcHFtGoo47c/C7lmvQ2XwbNCJCGPFu9xcq PppZodralfp1Qh8rX3AdKApz89C39Q5u44j0jUjSyO132F38qCyw9aK7PZDhRYIM7kD9 mCww== X-Gm-Message-State: AOAM532w3j7QEb2lAmQhSzHULyiuka3c60Y2pr1ov1322d79a8fHY8yw z7mIZNl4NoNsCFR0uNvA6f/iROr7yoI= X-Google-Smtp-Source: ABdhPJwCDQ15eBlxq8j6SQFotSBg7YhdPx7dH6NNw68kxuJ80JRgil2Xzr8CsoUs9deI8/F//nGV1w== X-Received: by 2002:a05:600c:1ca5:b0:39b:a66b:7805 with SMTP id k37-20020a05600c1ca500b0039ba66b7805mr7111642wms.87.1653931139542; Mon, 30 May 2022 10:18:59 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id i18-20020a5d5592000000b0020c5253d8dasm9403270wrv.38.2022.05.30.10.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 10:18:59 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix Devel Subject: Re: wishlist: =?utf-8?B?4oCccmVwYWNr4oCd?= generations history of profile In-Reply-To: <875yln2flm.fsf@gnu.org> References: <86wnegb9it.fsf@gmail.com> <87tu9g2r3k.fsf@gnu.org> <86r14kdw4m.fsf@gmail.com> <875yln2flm.fsf@gnu.org> Date: Mon, 30 May 2022 19:18:49 +0200 Message-ID: <87k0a3aqh2.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::329; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x329.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=1653935089; 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=37qe4DuPAar6Z5o6QBGjtDQ2UYj88ulO9Jze4Tjl/c0=; b=FGV+tgy21r7WQq7FR6L6bk6au1YDM2pQ9Jw9utWR2s36I+rlTQtZLeQ2NYUpwyJyWvFyqn 0wJxo1xPaeT13Hmc7h+qZ65sVX/j9PICUwIh9gBu+zURE0VBvfUxpNMnkM+o/SRol89Rak Djxix3/WS6j29Gx0L7CUnT5dnK7pvJdO/4qVBsmUYdwgWLHFO5tpgGle55D+02OomnI11M mg92nUn/85088MPwocxdcC9Sc/a9gmUOs347MCqc12ncza1SRH7P4NAaqXvSmsTTRxACLr Gr5ZcP1kbWdW4u2kSxouvev4nP1THgQE4ukyVYr6wp0nw4gseRwXQRj6cw7lQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653935089; a=rsa-sha256; cv=none; b=fLcfGBAdQJC7SPbb/LACZAtAe0cvjlbEGMfNOCcrWphbyrM+Nhr+QE7RHJYwLIQPvdf/zG sBv5Fo8TfD7J/gyiwdDYBtAeh87mJEf4T4DZP0Wg41YuUrCsQJIifwp334wsNoreg+Smh4 K/HaCFlrAz72akqNG/9SJiLDG7Mniy/rxkXB6PJ/N2pI140OkGAhj1X6cyM9hfdgRIK8pD eMv3AvrRHJb/hIlPvIHx+0g0PGtVbqQe+aQrWmkGQt5ePwd/7spw+de4LWe0DiGYd/VqQa BltP7XzYFCZtH2pgoDjHWS0JmTRDJgNmucUeOhxmYHhEDaYEDNpOEYo/GRokiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CO88qQb+; 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: -9.83 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CO88qQb+; 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: 8120F10B95 X-Spam-Score: -9.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZGfU8VyuUOcw Hi, On lun., 30 mai 2022 at 17:40, Ludovic Court=C3=A8s wrote: > Yes, that =E2=80=98manifest=E2=80=99 file would have copied elsewhere (we= can=E2=80=99t just > remove part of what=E2=80=99s in a /gnu/store directory). [...] >> Instead of this external tracking, I would like to allow this workflow: >> >> guix package -p project --list-generations >> guix package -p project --switch-generation=3D12 >> >> whatever the sysadmin collect about the old generations. > > Do you expect =E2=80=98--list-generations=E2=80=99 to look at older revis= ions of your > version-controlled =E2=80=98manifest.scm=E2=80=99? I do not expect that Guix uses my version-controlled =E2=80=99manifest.scm= =E2=80=99 but instead that Guix uses its own internal one. If the sysadmin of my cluster does as root =E2=80=9Cguix gc --delete-generations=3D3m=E2=80=9D, then this GC is out of my control and unexpected by me, which somehow breaks the rootless argument. Other said, because =E2=80=9Cguix gc=E2=80=9D can be run periodically (for = good reasons!), as a user, it is hard to predict what I could loose. Well, consider the situation: 1. User install foo bar the profile my-project on January 2. User update foo bar on February 3. User works on another project 4. Months later, user works again on my-project The generation #1 can be lost. For sure it depends on the cluster policy but, as a sysadmin, I do not tell all the users that a GC will be run =E2=80=93 and even if I am doing, I am sure that some user will miss to= save the channels.scm and manifest.scm for each generation. That=E2=80=99s why, something like =E2=80=9Crepack=E2=80=9D is missing. As= a user, I should be able to do guix package --switch-generation=3D1 whatever the sysadmin collects about the old generations and whatever I saved using some external tools. At GC time, enough information of the old generations should be kept allowing =E2=80=9Cguix package --switch-generation=E2=80=9D or --export-man= ifest or else. We could imagine an intermediary mode between the two current ones: + full generation + repack (only keep some text files) + purge (remove these few text file) Cheers, simon