From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GAMGJexF52YpYwAA62LTzQ:P1 (envelope-from ) for ; Sun, 15 Sep 2024 20:39:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GAMGJexF52YpYwAA62LTzQ (envelope-from ) for ; Sun, 15 Sep 2024 22:39:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qmEn5wMn; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=IapHyEah; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=CXASgUjQ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726432748; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=309Q3UJjMXujvF1ypEXsafqKvrZichCgxh6pH7AENUQ=; b=Bh7H01Q6jSIN3UAvtR5qKvyDkELudzKqqxXptTIwW6Q8Hz94vvy0ouRndMRRKAMgLYT7Mi +eGuljQYSy/q3XULrerzl2zU7rKy9iM/Z/GG7Y7Ijv4lFddxNQda5HP+m6N8L7nfdjC2EN beck/Snx2opXKJqdGw+pc7yGxU0v2Wr0i+z53kV8iEVtsq7RQG215IwiP96rJnm+K0qkuW fIlCQWH0jGQXmcY5y7T5IbXEFVl/sFmyLnio1JsQF92M9/87BNiMmD8/Alspu3z+zGQRX2 b2lhmBqECfQL/WvS/VWUWLYc+KIrrxgyjLGwsR4EWQ28ND4OfP0CcGjB8SjNCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qmEn5wMn; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=IapHyEah; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=CXASgUjQ; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726432748; a=rsa-sha256; cv=none; b=s/NkoOgMA7uWh0pJK8LilGbPSwVxtf/838Ngok31OOpyU1B7Qk7OAVZbLORna3m25h1MLX NNuJWfTxSIskUU49c7V8zd5HQ0xnTMpwS/DYT6TRh7ZrVY4DRm4Fs8nz/CqfDoeuYYrmOI 1LKa5T9YVqn29WhQrHLRRJtSZm+tNrZrExc3UmaKxnmiU5S1HAJRWaCPWcL7mHlsowb/YJ gcaiuMq6imhlcliQ1TMVaC8spHrxWCHh0milRiNt6bbspzKTQmwqn+etzuhuntgXQHMBUe qJCxmqm2nnbZOad2bPdsJKCyOEnGmXAfsDDLltqq/A7TuzSfksfKWLOJkQx07A== 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 EB469CDCA for ; Sun, 15 Sep 2024 22:39:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spw1G-0004SL-2V; Sun, 15 Sep 2024 16:38:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spw1B-0004S3-PU for guix-patches@gnu.org; Sun, 15 Sep 2024 16:38:49 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spw1B-0001Dz-Gu for guix-patches@gnu.org; Sun, 15 Sep 2024 16:38:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=309Q3UJjMXujvF1ypEXsafqKvrZichCgxh6pH7AENUQ=; b=qmEn5wMnVKGLH//j1fkRKnXsdKbkJ2UJtqUtI5T7VZZ28Gr9mmgKeesLJd+QSmKOBOyRngeajSbiuaDbykkwUp+KP9NUlaVbg30qbbQs4p7r27vnHEXyDDVe/PpDcvnLw9w0W6od39beD+Y40K21CQ0BlKAd8zDLtugMEfpHlctDT/8EbiPHm0qnusrmpRLx7PADcnATBU6cIvN1W9C3OJILSjyz0JAyUDRLQScHZb+VUBXztoIGDBJlXbBMz3GKkHwUeoVbhl4L0HHPRSnQuwm7sGAvI9wX/pHPoLexY6Q8xb3q+/v1rLlDwQMuldSgOKVt2/IU5pHnsoKM85pWEw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spw1N-0003RU-Qu for guix-patches@gnu.org; Sun, 15 Sep 2024 16:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72928] [PATCH] time-machine: Print profile path if no command is given. Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 Sep 2024 20:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72928 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Christopher Baines , 72928@debbugs.gnu.org Received: via spool by 72928-submit@debbugs.gnu.org id=B72928.172643270613180 (code B ref 72928); Sun, 15 Sep 2024 20:39:01 +0000 Received: (at 72928) by debbugs.gnu.org; 15 Sep 2024 20:38:26 +0000 Received: from localhost ([127.0.0.1]:50581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spw0n-0003QW-Pv for submit@debbugs.gnu.org; Sun, 15 Sep 2024 16:38:26 -0400 Received: from wolfsden.cz ([37.205.8.62]:60940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1spw0l-0003QM-8n for 72928@debbugs.gnu.org; Sun, 15 Sep 2024 16:38:24 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id B44AD31B1CA; Sun, 15 Sep 2024 20:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1726432689; bh=7A+konG8Vmk8PZuzMiDOhwnS9579sIuiJBw/b+MY1YA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=IapHyEahyZPIN7WDR1mVfRsKDkGYIw64JQ2rc8Y7VteNKRZrPniUGjjs1ox3jEj9i A6kG9NBvwaP8eFPOsYfpyvzhrSOZgBqCG7aYNsSYJC2ZVf8A6jIfNhTNLlvQhqNrY8 mLoDlaEiNkKU5W69HBjD8DN3Uz2/gOaZyU8nyQRDFWtUjh5lyfdqCcW5qX2voTWDD9 hXy5pUlAOD5MOgKwIpwJayDULNgwn/dFV9sblOXKYSu8eERIBeTpc8c+ph50cuGA8S 3RUIJQkKIhYDsecVsdYunel9mxLoeOV2Oh7lli4Ec1+5yKpF59YwxDaDEkVVuBIOxV X0vq3elnDB3monFAG5CUFligPkkU1Q4LPxI/iIFu0L6wXuYAGdnoqgJR2HH1x7mDd9 6KnB8rRbh1KIZ6GIRPZQawmvWdyxh+StYsuyLV5gMMQ0nLeFSCC7PWOA3cPEXiWtCM E92C0bLYii+wZ4gyhW/5jZxr+LgpeA9ifRNUqQFMP1m1ySJY/2HalUEy00v4W4nvyM RgFhM82GnyP96quE+XxBeO/czEnSJfducG4ycjiEen9v1tkOOM5P9YBRD6mquuycOw c1h45n+YSjB5eyIkhRNA9ReEZGrm4lSmcg4C0IOvnIhCjKF4WZvP5d/JUYRQlV5VN8 AqkirIawvtz51T9/ze671u5U= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 560C231B9A2; Sun, 15 Sep 2024 20:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1726432688; bh=7A+konG8Vmk8PZuzMiDOhwnS9579sIuiJBw/b+MY1YA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=CXASgUjQGEFFXEhC+GPJYb69jp1eZC0BJ4HAed0yx7eRYLAVhQfXPdQjTPPiOG8bM iT7sc5LEKzen3+O6Zj7GE+VbvuaCr7oh9zits8Z/n+7RIRZ2pEVUPfMilntGI5VyxC JS/9VpoPq8AhjkC0JAcVf2JFPPqph8bg11yfAJWVsQbxLfNySJfnD74j+Qz/ni4dom Pd7ZuVIyLnCs+rPGmLU7Is15dT5kRYrK2Wn5u04RHuMHJIHErFt98ClTuU+TwBY5yV kD06j3De0Qmx0ZCOLSe80uWYeVKa3tvjGK6o5DRJylFpQs4hEmvDBMaOJyNEToddef QwHUXJ+LOQ9ltQGNqKGBB88isE/PPixRMXW6YH5V5SRzMkGmEqxIVk9tjQYSrSvGy5 zfwi3h6k1Yjahl1Zu6ESkAFZKpSxRKRbFna5aHKKtXQACCQ9wMssh7rbNAwtnHgZ1q QeZyI7aMTiLDoqaautOaTMACgo+/IGIez0PqAkp5VKE1b22JXAafUWm81OUWEYW17b 891IC/6nopfjSltyawST9Jw5SUMnI8/hfNwdEMIM6tkfDe0fSC+/9FbLaktNWYiaCj 8KSKwEYsj75IFtWt23mncVOjatvFlB7vueVAMHmGDAF9qIKHgHqWf1/rk5PV+MK7OE kYeIt+H1bAzyGdxVeRnPWp+8= From: Tomas Volf <~@wolfsden.cz> In-Reply-To: <87o74wc2l2.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 09 Sep 2024 16:40:41 +0200") References: <9f9f76785a5f43b77eeff14d407c675876dffd61.1725198888.git.~@wolfsden.cz> <87o74wc2l2.fsf@gnu.org> Date: Sun, 15 Sep 2024 22:38:07 +0200 Message-ID: <87r09khcuo.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.61 X-Spam-Score: -6.61 X-Migadu-Queue-Id: EB469CDCA X-Migadu-Scanner: mx10.migadu.com X-TUID: 6MBwQLB36DAt --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Ludovic Court=C3=A8s writes: > Hi, > > Tomas Volf <~@wolfsden.cz> skribis: > >> Instead of warning, print the profile path of the cached-channel-instanc= e. >> >> * guix/scripts/time-machine.scm (guix-time-machine)[not command-line]: P= rint >> the profile directory. >> >> Change-Id: Id2c1ded514e6c5af45af9008ad1ef91beb509177 > > [...] > >> + (if command-line >> + (apply execl (cons* executable executable command-line)) >> + (format #t "~a\n" directory))))))) > > Maybe print =E2=80=98executable=E2=80=99 rather than =E2=80=98directory= =E2=80=99? Printing directory gives nice symmetry between =2D-8<---------------cut here---------------start------------->8--- $ $(guix build guix)/bin/guix describe guix 9a2ddcc repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 9a2ddcc8f5a6f64b475eeb13a3f1034aa6a4a49a =2D-8<---------------cut here---------------end--------------->8--- and =2D-8<---------------cut here---------------start------------->8--- $ $(guix time-machine -q --commit=3D9a2ddcc8f5a6f64b475eeb13a3f1034aa6a4a49= a)/bin/guix describe guix 9a2ddcc repository URL: https://git.savannah.gnu.org/git/guix.git commit: 9a2ddcc8f5a6f64b475eeb13a3f1034aa6a4a49a =2D-8<---------------cut here---------------end--------------->8--- And in some cases you need the store item (guix copy?), and in my opinion it is easier to go from directory to binary than other way around. But just let me know which way I should do it. > > Also perhaps add a sentence or two in the manual? Ah, yeah, definitely. Once previous point is clarified, I will send v2. Tomas =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmbnRa8OHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wam2ew/7BJpO0256mkKBAi2HmrcIdr5Sv3pSuMrtrMDu j1rhUBa5t+GrwNlD500ELq3G0EtWsn/3KDGeV7h9823Bzjl0I31ZDH9v7s8zHcbr HUtvIenRw5gXu+S4h8G6dQif1VcarbgOPL+WJWNEjdlQUjatf9t2aLt+UtIJw0fT Uo3Djly7MMXoT2vOhY//uocvgiv8r1cyG9dBxjAoSh3IhdKtWTNIby6bU07VDu6d JFdzdifjn/bI0ikwWPuA6CwyAb8xw9m8nyZuy25X6QGyr7UIplsUukHyR6QEZ/bT mqo6Eja89b7hfbhQU7a9znr1OWshe4hOulqHJOiD2+IYhRstHKti6Pfu4aujnciy FO1T0vAF9/XKq52WgSXfV639b38bK9S5h6RN3G3oHmoRKsD+O8XJjYVIWwp/PbCY bquM+aVuxW/D7PCt9s7EKuKlQNn2c23Qkd8Y1zyIxeDVYDCRVBonsevphbQBb4nT z8BQzEPQ3eXXi4rQDvBWwPFT7pstdIHviyZrtmbsMeLlaCTG52nmRbH+7Z+7fHnr SwuIJmncFE6kJ81Du0pmebNVMPHQBDFqSt2laCavRNXQGYWfqC870QIHKeD0rX2L FnpVtP4bmi4u1K7WwsiL2G6nL7AY6JIibYe1zNtTGA16747SRDyL/B0cdSqfI0dY VzMDr9k= =syny -----END PGP SIGNATURE----- --=-=-=--