X-Loop: help-debbugs@HIDDEN Subject: bug#50026: Specify a pull-request in --with-branch package transformations Resent-From: Philippe SWARTVAGHER <philippe.swartvagher@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Thu, 12 Aug 2021 15:02:03 +0000 Resent-Message-ID: <handler.50026.B.162878047113118 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 50026 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50026 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mECCj-0003NG-B0 for submit <at> 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 <philippe.swartvagher@HIDDEN>) id 1mE7Ak-0001hp-3z for submit <at> 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 <philippe.swartvagher@HIDDEN>) id 1mE7Aj-0003Jz-Q5 for bug-guix@HIDDEN; 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 <philippe.swartvagher@HIDDEN>) id 1mE7Ah-0003B4-8r for bug-guix@HIDDEN; 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 <philippe.swartvagher@HIDDEN> Message-ID: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@HIDDEN> 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@HIDDEN; 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-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Thu, 12 Aug 2021 11:01:08 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) 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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Philippe SWARTVAGHER <philippe.swartvagher@HIDDEN> Subject: bug#50026: Acknowledgement (Specify a pull-request in --with-branch package transformations) Message-ID: <handler.50026.B.162878047113118.ack <at> debbugs.gnu.org> References: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@HIDDEN> X-Gnu-PR-Message: ack 50026 X-Gnu-PR-Package: guix Reply-To: 50026 <at> debbugs.gnu.org Date: Thu, 12 Aug 2021 15:02:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 50026 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 50026: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50026 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.