From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cOH7FhwnA1+PbQAA0tVLHw (envelope-from ) for ; Mon, 06 Jul 2020 13:29:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YAC1EhwnA18JMQAAbx9fmQ (envelope-from ) for ; Mon, 06 Jul 2020 13:29:00 +0000 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 D9EEB940390 for ; Mon, 6 Jul 2020 13:28:59 +0000 (UTC) Received: from localhost ([::1]:46110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsRB4-0000ok-TG for larch@yhetil.org; Mon, 06 Jul 2020 09:28:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsRAA-0008Au-Pf for guix-patches@gnu.org; Mon, 06 Jul 2020 09:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50485) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jsRAA-0002Bc-FE for guix-patches@gnu.org; Mon, 06 Jul 2020 09:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jsRAA-0006OX-Bi for guix-patches@gnu.org; Mon, 06 Jul 2020 09:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42225] [PATCH 0/5] Add 'guix git-authenticate' command Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Jul 2020 13:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42225 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 42225@debbugs.gnu.org Received: via spool by 42225-submit@debbugs.gnu.org id=B42225.159404206724559 (code B ref 42225); Mon, 06 Jul 2020 13:28:02 +0000 Received: (at 42225) by debbugs.gnu.org; 6 Jul 2020 13:27:47 +0000 Received: from localhost ([127.0.0.1]:33798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsR9v-0006O2-1E for submit@debbugs.gnu.org; Mon, 06 Jul 2020 09:27:47 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsR9r-0006Nn-4G for 42225@debbugs.gnu.org; Mon, 06 Jul 2020 09:27:45 -0400 Received: by mail-qk1-f194.google.com with SMTP id c30so30823089qka.10 for <42225@debbugs.gnu.org>; Mon, 06 Jul 2020 06:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UMDLfckzi+EEFdewJ1SpfgE1VREXKYUHeIPcMvSb0/g=; b=tJUe7d+Ks1qDrWJrJP+hKaFXQm7AHj5aH/T2+m8g1TsrgBmTH1Smqqm0nSAhax8IKf zWD0J/m5tbpZEO3is+GG9O6WQhhD2cgaRhebaM9/IA0bgwEjzaOCQIveakFHX0OG3QwB erAgJJp7lDAmZRS1M9IeEhhcOH3xJVV7pA4feP3DaN2HceGhJb8wGOhGPiZLWu0+PhUm jILN159/WJBdwaXmEYQFc4+Rv2EMJ//IX0TCtvDsE48Deaghid8ixDdaLB0MCPBBo5Dd isF6d0/wXNsKKTwMzCBi2ITvaEFteBHzDRRJNA0SSnS/hYXKSj4WYJ/9kIN3RmeB5t1/ nqyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UMDLfckzi+EEFdewJ1SpfgE1VREXKYUHeIPcMvSb0/g=; b=THUH/e4zhMlEh+5d04zvG4Pz4K4HaKGsH8AlIfX8da+0uADFBKIODJtUEFGz8POuvW HKpSP2dZDNssr69DNTAXBcRHwbcPZD9XkavbvqPakUQA0DF41s2q1SjEpdOojL3saYg3 gUdHaY9LEPjnIdmUTImJ9RFb1y1PLX/WIp5sCH3Kwr1lXIc7aokzCY11Sd2dwzXJ/4Uz jyggy7VD6bFJQM9ILVdZgjSHsvkaXq9hSPKn4ATg9EXCJcDuz0XrdfCvx+0wwHfKTvIv Gs9NLxBMQ6IceM5xKT3skbol80nSCRLFgr2NIJvq7VLVP0rtrTSWJcahaCsBl/5eF+rF YLKg== X-Gm-Message-State: AOAM530Ajpr3e7Dn/LtcvjB8dr3lhC0WBNlBkdxhOZvLzNuN3sLkK9ok YebyAXESe/M6/NJTvYKTc21tipVRy5pQT9JWQHmsDsxS7A4= X-Google-Smtp-Source: ABdhPJzo0AxsIhE0+KitH8V04npN5Cxk4n//iNtDkhQqfNdmMpk7lq/QMCsVBLa6jCpc8fAGTOAhP0SoF6sunDJBVlY= X-Received: by 2002:a37:b141:: with SMTP id a62mr41402128qkf.201.1594042057538; Mon, 06 Jul 2020 06:27:37 -0700 (PDT) MIME-Version: 1.0 References: <20200706083755.11778-1-ludo@gnu.org> <86y2nxro6j.fsf@gmail.com> <871rloke0d.fsf@gnu.org> In-Reply-To: <871rloke0d.fsf@gnu.org> From: zimoun Date: Mon, 6 Jul 2020 15:27:26 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=tJUe7d+K; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: +33nqWrEAyoc On Mon, 6 Jul 2020 at 14:46, Ludovic Court=C3=A8s wrote: > > git -C $SRC log | grep Update > > > > And I would like to be able to simply run; > > > > guix git log | grep Update > > Good point. Though hopefully this particular use case (finding new > package updates) is well served by =E2=80=98guix pull --news=E2=80=99, no= ? It is not for new package updates, but the contrary. :-) I use it for searching versions back in time. Which commit introduces which version. To be honest, I am almost never use "guix pull --news" because I am pulling once every full moon, and even when I do, I run an ugly script like: --8<---------------cut here---------------start------------->8--- #!/bin/bash # url-cache-directory from guix/git.scm # pjmkgl... =3D hash("https://git.savannah.gnu.org/git/guix.git") CACHE=3D~/.cache/guix/checkouts CHECKOUT=3D${CACHE}/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq printf "Updating local checkout:\n'$CHECKOUT'..." git -C $CHECKOUT pull -q echo " done." guix pull --commit=3D$(git -C $CHECKOUT = \ log \ --before=3D$(date --date=3D'2 weeks ago' +%Y-%m-%d= ) \ --format=3D"%h" | head -n1) = \ $@ --8<---------------cut here---------------end--------------->8--- because I do want the substitutes available. Well, for example, I run: "guix pull --news" and I get 15 new packages and 367 packages upgraded. > It=E2=80=99s not entirely clear to me what a =E2=80=98guix git log=E2=80= =99 command would do in > fact: show the log for the =E2=80=98guix=E2=80=99 channel? For all chann= els (how?)? > For the specified channel? For what commit range? This is maybe out of the current bug report. I do not know if it is good to discuss here. Well, quickly we could imagine: guix git log # for guix channel guix git log --channel=3Dname Then for the commit range, it could be the same UI as "git log". Since the commit messages are well-formatted, it is pretty easy to grep in. Moreover, "git worktree" could be added too. Well, the idea behind is to avoid clone+guix-environment+./pre-env-inst. > > And the same for tagging commits. Which implies also improve what "gui= x > > pull" and "guix time-machine" accept. > > Tagging commits is tricky because users only have a *cached* checkout. > So if we want persistent tags, we=E2=80=99ll have to develop a separate > mechanism. Could be useful, though perhaps redundant with the > (unimplemented) idea of tagging generation? Well, I do not want persistent tags. I am fine with local tags. I mean it is easy to tag my local repo with something meaningful for me and then lookup couple of weeks later. I do with "git -C $SRC" but I would like nicer to be able to run: guix git log | grep bazinga guix git tag foo guix time-machine --commit=3Dfoo -- > In the short term, we don=E2=80=99t need to solve all these problems: we = can > also go for =E2=80=98git-authenticate=E2=80=99 and rename it once we have= these other > commands. I have learnt that renaming will not work. :-) Because backward compatibilities and break the workflow of someone. So I would take the other route, go for "guix git authenticate" and hoping that other commands would come soon. Well, I do not know. It is just a suggestion reading your message. :-) Cheers, simon