From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id PE6/GVUba2JpHwEAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 00:55:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QM61GFUba2Iz6AAA9RJhRA (envelope-from ) for ; Fri, 29 Apr 2022 00:55:17 +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 DE6B38FE5 for ; Fri, 29 Apr 2022 00:55:16 +0200 (CEST) Received: from localhost ([::1]:43610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkD2Z-0000wo-Rd for larch@yhetil.org; Thu, 28 Apr 2022 18:55:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkD2M-0000wb-Jg for bug-guix@gnu.org; Thu, 28 Apr 2022 18:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkD2M-0004JZ-5t for bug-guix@gnu.org; Thu, 28 Apr 2022 18:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkD2M-0003p2-48 for bug-guix@gnu.org; Thu, 28 Apr 2022 18:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 28 Apr 2022 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54942 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: SeerLite Received: via spool by 54942-submit@debbugs.gnu.org id=B54942.165118647514653 (code B ref 54942); Thu, 28 Apr 2022 22:55:02 +0000 Received: (at 54942) by debbugs.gnu.org; 28 Apr 2022 22:54:35 +0000 Received: from localhost ([127.0.0.1]:50275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkD1v-0003oH-8K for submit@debbugs.gnu.org; Thu, 28 Apr 2022 18:54:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkD1u-0003o4-Az for 54942@debbugs.gnu.org; Thu, 28 Apr 2022 18:54:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkD1n-0004Fq-RY; Thu, 28 Apr 2022 18:54:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Wej4gQMGF3LgpYAPT7T/kCh0CUVTbCe0r6IIxM8EO8w=; b=cW10WWDw0Jk/MiAq2oHM PV6tWMbYSW7Q7+xeuPLiR7rJwD7RqybXfGiOoxJORMW2IWL/UkqtEOUSsiN6RLEESCOT1xrrucT/6 tTa2bac4kVZIxMHobHkuBBX1RcXE+aLN+2dCzPLqE36JMAvM0svND6iRscIJyhU410EeHwPwXcsnN cxpeZXnxrqKzM/sjTkEFbj2RZ1Mo23X8b6s8YvVOKy6JVW53rJNOfFnybprtvozkeOm/dhD9HWSBH DcQ9fN+rillKilxVRZF9AvJTjcg1OuZ/ITS/kBEx3kIK0W5RVu+ffBG9i2ZzYdcQYWQw+ndb35AKD 9ZRXL0viKYdvMA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:63791 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkD1n-0001Dv-E3; Thu, 28 Apr 2022 18:54:27 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <55a97413-14a1-fbca-2c55-73b6e3782b47@nixnet.email> Date: Fri, 29 Apr 2022 00:54:25 +0200 In-Reply-To: <55a97413-14a1-fbca-2c55-73b6e3782b47@nixnet.email> (seerlite@nixnet.email's message of "Thu, 14 Apr 2022 12:45:11 -0400") Message-ID: <87fslwakf2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 54942@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-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=1651186516; 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: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=Wej4gQMGF3LgpYAPT7T/kCh0CUVTbCe0r6IIxM8EO8w=; b=BVf/3V2kNQK02EWSbWGppZ/UHhc9iw1KoA3zJ586iP95yGbGXp0wTZVJnFEf0dUHBU1A4r TFDvNGH0Tj/NQCL41Z0ePVeBnNoU8EpxYrZaW2MCNDajw7FjF5NfyWdgNVMdN9XP1DlIGG bXlcfgpBhcLBybu2XeaeQ9N1fgztnJXsKkv12MzOqYA3pjA8iC8HXtPWSOrtTSrGGW18w+ iW4YW+Vklaep1Y8WBavZnRwe7UQ7AJ9FEjnPuCuU1nJaLQGdiTxfKVrvQr9Xuvj0+bpbVm PG4YxiGPi/oUZMkyPlTwl8tiZpXULH9d/vbzmJJTzKLVYNjFX42s5pbljcvmow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651186516; a=rsa-sha256; cv=none; b=c2B+vaJS0gObenyeqglIc6il51iLFjD+VEu8LZaxnSsIq5kwlTimnsNvMTpmHkUGEOlRkH BdI130DLzj2hfB6l+mH3tQ+VosCkJeDv6qtP21HLoZ+/mJ9h7wVVOXLwtJirszdKlaGFyy cfTkR7psNTtjFsoFlZ4WjpSAB/wh6EcvcGhU1M4m7sIib55V378gFd0OXwzDNj0ENQV3dt OPM2Rcv2wApG9cGYfD7ZvvqMN9j4Zlj5hKL/kfjw/iSqpOwIAvdnJvndrFo077j8QUEFFR 1/ULUK3j+Apd+2q0pzWwwxlCCOUT9eDqrBC9Y3HMqHXkrf2n7yWy2keu88nFhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=cW10WWDw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=cW10WWDw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DE6B38FE5 X-Spam-Score: -3.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: jAfl9Wdoqgqh Hi, SeerLite skribis: > I installed a package with --with-git-url and --with-branch to my profile: > > guix install kakoune > --with-git-url=3Dkakoune=3Dhttps://github.com/mawww/kakoune.git=20 > --with-branch=3Dkakoune=3Dbreaking-cleanups > > However, now I can't run `guix upgrade`. I get the following error: > > guix upgrade: error: the source of kakoune@2021.08.28 is not a Git > reference [...] Maxime Devos skribis: > I guess the problem is that 'with-branch'/'with-commit' come before > 'with-git-url' in > > (untested!). My guess is rather than the profile records (or replays) transformations in the wrong order: --8<---------------cut here---------------start------------->8--- $ guix shell kakoune --with-git-url=3Dkakoune=3Dhttps://github.com/mawww/ka= koune.git --with-branch=3Dkakoune=3Dbreaking-cleanups --export-manifest ;; What follows is a "manifest" equivalent to the command line you gave. ;; You can store it in a file that you may then pass to any 'guix' command ;; that accepts a '--manifest' (or '-m') option. (use-modules (guix transformations)) (define transform1 (options->transformation '((with-git-url . "kakoune=3Dhttps://github.com/mawww/kakoune.git") (with-branch . "kakoune=3Dbreaking-cleanups")))) (packages->manifest (list (transform1 (specification->package "kakoune")))) $ guix shell kakoune --with-git-url=3Dkakoune=3Dhttps://github.com/mawww/ka= koune.git --with-branch=3Dkakoune=3Dbreaking-cleanups --export-manifest > /= tmp/m.scm $ guix build -m /tmp/m.scm -v1 guix build: error: the source of kakoune@2021.08.28 is not a Git reference --8<---------------cut here---------------end--------------->8--- If you change the order of both options in the alist passed to =E2=80=98options->transformations=E2=80=99, it=E2=80=99s all good. Now we need to find the place where things are being reversed=E2=80=A6 Ludo=E2=80=99.