From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IJDFBwQ4FWF19gAAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 17:02:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MIdoAwQ4FWF8WgAAB5/wlQ (envelope-from ) for ; Thu, 12 Aug 2021 15:02:28 +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 44A471D0A3 for ; Thu, 12 Aug 2021 17:02:27 +0200 (CEST) Received: from localhost ([::1]:50302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mECDx-0004IW-Fp for larch@yhetil.org; Thu, 12 Aug 2021 11:02:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mECDb-00040W-LC for bug-guix@gnu.org; Thu, 12 Aug 2021 11:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mECDb-0004DL-DR for bug-guix@gnu.org; Thu, 12 Aug 2021 11:02:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mECDb-00044U-BF for bug-guix@gnu.org; Thu, 12 Aug 2021 11:02:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50026: Specify a pull-request in --with-branch package transformations Resent-From: Philippe SWARTVAGHER Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Aug 2021 15:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50026 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50026@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162878047113118 (code B ref -1); Thu, 12 Aug 2021 15:02:03 +0000 Received: (at submit) by debbugs.gnu.org; 12 Aug 2021 15:01:11 +0000 Received: from localhost ([127.0.0.1]:39628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECCj-0003NG-B0 for submit@debbugs.gnu.org; Thu, 12 Aug 2021 11:01:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:51020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mE7Ak-0001hp-3z for submit@debbugs.gnu.org; Thu, 12 Aug 2021 05:38:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE7Aj-0003Jz-Q5 for bug-guix@gnu.org; Thu, 12 Aug 2021 05:38:45 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:41239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE7Ah-0003B4-8r for bug-guix@gnu.org; Thu, 12 Aug 2021 05:38:45 -0400 IronPort-HdrOrdr: A9a23:OcMKY61FUmKeCnNF8V4lOAqjBK0kLtp133Aq2lEZdPUnSL37qynIpoV56faUslYssR4b9uxoVJPrfZq+z/9ICOsqUYtKNTOO0FdAR7sO0WKN+Vbd8mHFmNJg6Q== X-IronPort-AV: E=Sophos;i="5.84,315,1620684000"; d="scan'208";a="390166398" Received: from unknown (HELO [193.50.110.198]) ([193.50.110.198]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 12 Aug 2021 11:38:38 +0200 From: Philippe SWARTVAGHER Message-ID: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> Date: Thu, 12 Aug 2021 11:38:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Received-SPF: pass client-ip=192.134.164.104; envelope-from=philippe.swartvagher@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 12 Aug 2021 11:01:08 -0400 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628780547; 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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3+MCXJXsGEV9JZGPMFgXFmp+I9nrhSVggIBRCeFWK+E=; b=EgpI/H9szT3pkfGnx3+eBGwk7Naxd2GLSLDjSRxWJhCJa3J6TED1v0odwBc02h/DldRy46 oHL5JGorHzNDefWLx4I9eir2FqriW5Ezj9cJv8DT95THIGz/1L8CLER6YZWz0wbDGOk9lK GJxs36XYH/TQqBga2b8g8SI5dkMlb3zuO/MvTFjIOtPMW5ED58sSg4jm+fOO7fXJCeYPQ4 xrfVJ1Arg4WBbFh0BXpqSbp5tyQE60F9hMLmcopF53H/l+FyaMwVbxXWdLsxcD5mOJAgor Po0hCK49aiJjof42MrX9PqyxEcTF6WlEgTUXkVTK2qicV5e1ojOS3CPogAgETg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628780547; a=rsa-sha256; cv=none; b=uWdSMk8qAvdy8XEtFjRCg2B5zcA4d+7QNCvpiA+ZgnWtN/PR2PuVz+jFTLlilUUajXzCiw kXD3eUqzeH7PFgtoLa4tI15ywNHuiBy5X5bX22r40ToSTchWRyFhUbPRN8Kr6irSf7Kvqo fj2iZtX7JnmqFv3KiXG8X+6vDsjpEAqdu0S7JiKtrm3AwOohwowwxCEHbwMeGJNcbFQnqH 9T77grwVzl1VGnrRDvUAI4QEwxf2ASEVPrBR3wLFlZ+LmIy2FGHo2FLu1k7Nixgl7tjhyR BAlhwLPm57cr5+gbf0/VVgZi6OMu99Ku3i3HgRiTgWMAGeDdv7kptlO3UKmXlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 44A471D0A3 X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0MMNkQ36zOy6 Hello, A nice feature would be to be able to use a pull-request as branch to specify in the `--with-branch` transformation option. A use-case is to use a pull-request coming from a private fork, thus we can't use the combination `--with-git-url=3D with-branch=3D`. As an example, if I follow https://gitlab.inria.fr/help/user/project/merge_requests/reviews/index.md= #checkout-merge-requests-locally-through-the-head-ref, I should be able to do something like: ```bash guix build chameleon --with-branch=3Dchameleon=3Dmerge-requests/262/head ``` (with 262 being the pull-request I'm interested in) However, this fails: ``` guix build: erreur : impossible de r=C3=A9cup=C3=A9rer la branche =C2=AB merge-requests/262/head =C2=BB depuis https://gitlab.inria.fr/solverstack/chameleon : cannot locate remote-tracking branch 'origin/merge-requests/262/head' ``` While commands stated in the documentation work well: ```bash git clone https://gitlab.inria.fr/solverstack/chameleon && cd chameleon git fetch origin merge-requests/262/head:mr-262 git checkout mr-262 ``` I guess the fetch step is lacking in the way Guix handles the `--with-branch` transformation. FYI, Ansible is able to do things like that (see https://docs.ansible.com/ansible/latest/collections/ansible/builtin/git_m= odule.html), by combining options `refspec` and `version`. I'm aware a workaround is to download the patch corresponding to the pull-request and using `--with-patch`, however handling it directly with `--with-branch` would be more handy ! Thanks, --=20 Philippe SWARTVAGHER PhD Student TADaaM team, Inria Bordeaux Sud-Ouest