GNU bug report logs - #50026
Specify a pull-request in --with-branch package transformations

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Philippe SWARTVAGHER <philippe.swartvagher@HIDDEN>; dated Thu, 12 Aug 2021 15:02:03 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Aug 2021 15:01:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 12 11:01:11 2021
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: =?us-ascii?q?A9a23=3AOcMKY61FUmKeCnNF8V4lOAqjBK0kLtp133Aq?=
 =?us-ascii?q?2lEZdPUnSL37qynIpoV56faUslYssR4b9uxoVJPrfZq+z/9ICOsqUYtKNTOO0F?=
 =?us-ascii?q?dAR7sO0WKN+Vbd8mHFmNJg6Q=3D=3D?=
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
To: bug-guix@HIDDEN
From: Philippe SWARTVAGHER <philippe.swartvagher@HIDDEN>
Subject: Specify a pull-request in --with-branch package transformations
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-Debbugs-Envelope-To: submit
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






Acknowledgement sent to Philippe SWARTVAGHER <philippe.swartvagher@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#50026; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 12 Aug 2021 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.