From unknown Fri Jun 20 19:55:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50026 <50026@debbugs.gnu.org> To: bug#50026 <50026@debbugs.gnu.org> Subject: Status: Specify a pull-request in --with-branch package transformations Reply-To: bug#50026 <50026@debbugs.gnu.org> Date: Sat, 21 Jun 2025 02:55:35 +0000 retitle 50026 Specify a pull-request in --with-branch package transformatio= ns reassign 50026 guix submitter 50026 Philippe SWARTVAGHER severity 50026 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 11:01:11 2021 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: =?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@gnu.org From: Philippe SWARTVAGHER Subject: Specify a pull-request in --with-branch package transformations 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-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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 11:34:12 2021 Received: (at 50026) by debbugs.gnu.org; 12 Aug 2021 15:34:12 +0000 Received: from localhost ([127.0.0.1]:39768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECie-0001Mr-Ds for submit@debbugs.gnu.org; Thu, 12 Aug 2021 11:34:12 -0400 Received: from mx1.riseup.net ([198.252.153.129]:59906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECiY-0001MH-O8 for 50026@debbugs.gnu.org; Thu, 12 Aug 2021 11:34:07 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4GlrM86LFGzDrkw; Thu, 12 Aug 2021 08:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1628782436; bh=7CKq7PbFNTZwuzxdgQutKlIJ2GoRq68gj5p4tVF7+OI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ORLo9ouOfIywUZXX2eflqbI4n7pR+0anvGro4q3x4/461cKIkdjP/a8yZ2LF+tWgw xZrvnK9aPca0C+WExSyl7/jkd/Z2VYSy/5kbSpmQADz3TBfe4HWAmzf0dAz4rmqeqT ar+zTIDn1FwgdMt7nqmIDA9dMm8bwqDetYcUesB8= X-Riseup-User-ID: B8590AA4F9D44EFC9615A75419DD3960843D740AA89DAB29A9084409E61E589F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4GlrM80V6Hz5vY8; Thu, 12 Aug 2021 08:33:55 -0700 (PDT) Date: Thu, 12 Aug 2021 17:30:46 +0200 From: raingloom To: Philippe SWARTVAGHER Subject: Re: bug#50026: Specify a pull-request in --with-branch package transformations Message-ID: <20210812173046.53151677@riseup.net> In-Reply-To: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> References: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50026 Cc: 50026@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, 12 Aug 2021 11:38:38 +0200 Philippe SWARTVAGHER wrote: > Hello, >=20 > A nice feature would be to be able to use a pull-request as branch to > specify in the `--with-branch` transformation option. >=20 > 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`. >=20 >=20 > 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: >=20 > ```bash >=20 > guix build chameleon --with-branch=3Dchameleon=3Dmerge-requests/262/head >=20 > ``` >=20 > (with 262 being the pull-request I'm interested in) However, this > fails: >=20 > ``` >=20 > 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' > ``` >=20 > While commands stated in the documentation work well: >=20 > ```bash >=20 > git clone https://gitlab.inria.fr/solverstack/chameleon && cd > chameleon >=20 > git fetch origin merge-requests/262/head:mr-262 >=20 > git checkout mr-262 >=20 > ``` >=20 > I guess the fetch step is lacking in the way Guix handles the > `--with-branch` transformation. >=20 >=20 > 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`. >=20 >=20 > 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 ! >=20 > Thanks, >=20 How is this different compared to just using the git URL and branch that the pull request is from? For example, here we have a merge request: https://gitlab.com/guile-git/guile-git/-/merge_requests/30 =46rom this repo: https://gitlab.com/plattfot/guile-git and this branch: git_ignore_path_is_ignored This is how merge requests work, there is always a (pretty easy to find) source repo and branch that should be merged into a branch of the target repo. This is how you would build it in this case: guix build \ --with-git-url=3Dguile-git=3Dhttps://gitlab.com/plattfot/guile-git \ --with-branch=3Dguile-git=3Dgit_ignore_path_is_ignored guile-git Someone could make a script that extracts this information from the various git forges (Gitea, GitLab, GitHub, etc), but all you get is that you can copy one URL instead of one URL and one branch name. I'm not aware of any standard way to access merge requests that would work across all git forges, so IMHO the implementation complexity is not worth it for such a tiny improvement. There is more important work. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 16:15:26 2021 Received: (at 50026) by debbugs.gnu.org; 12 Aug 2021 20:15:26 +0000 Received: from localhost ([127.0.0.1]:39969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEH6e-0008WE-UZ for submit@debbugs.gnu.org; Thu, 12 Aug 2021 16:15:26 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:53436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEGyQ-0008Il-NB for 50026@debbugs.gnu.org; Thu, 12 Aug 2021 16:06:43 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AEOxVi6MDXAhhB8BcTqajsMiBIKoaSvp037BN?= =?us-ascii?q?7SFMoH1uHPBw+Pre/8jzuSWE6gr5O0tOpTn/Asm9qBrnnPYfi7X5Vo3PYOCJgg?= =?us-ascii?q?aVEL0=3D?= X-IronPort-AV: E=Sophos;i="5.84,316,1620684000"; d="scan'208";a="523659575" Received: from lfbn-bor-1-1183-155.w92-158.abo.wanadoo.fr (HELO [192.168.1.23]) ([92.158.158.155]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 12 Aug 2021 22:06:36 +0200 Subject: Re: bug#50026: Specify a pull-request in --with-branch package transformations To: raingloom References: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> <20210812173046.53151677@riseup.net> From: Philippe SWARTVAGHER Message-ID: <3f91473c-41fd-3c93-24cb-d078e3ca22f2@inria.fr> Date: Thu, 12 Aug 2021 22:06:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210812173046.53151677@riseup.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 50026 X-Mailman-Approved-At: Thu, 12 Aug 2021 16:15:12 -0400 Cc: 50026@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) Le 12/08/2021 =C3=A0 17:30, raingloom a =C3=A9crit=C2=A0: > How is this different compared to just using the git URL and branch tha= t > the pull request is from? > > For example, here we have a merge request: > https://gitlab.com/guile-git/guile-git/-/merge_requests/30 > From this repo: > https://gitlab.com/plattfot/guile-git > and this branch: > git_ignore_path_is_ignored > > This is how merge requests work, there is always a (pretty easy to > find) source repo and branch that should be merged into a branch of the= > target repo. > > This is how you would build it in this case: > guix build \ > --with-git-url=3Dguile-git=3Dhttps://gitlab.com/plattfot/guile-git \ > --with-branch=3Dguile-git=3Dgit_ignore_path_is_ignored guile-git > > Someone could make a script that extracts this information from the > various git forges (Gitea, GitLab, GitHub, etc), but all you get is > that you can copy one URL instead of one URL and one branch name. When the fork repository is private and you don't have access to it, you can't use --with-git-url=3Dpackage=3Dhttps://someforge/user/private-fork because you won't be allowed to. However, you can have access to the pull request made in the public origin repository. > > I'm not aware of any standard way to access merge requests that would > work across all git forges,=20 Me neither, but maybe just asking Git to fetch all exisitng remote references (including these kind of special references representing pull requests) before trying to switch to the asked pull-request/branch may do the trick (it's maybe more complex than that, I don't know). > so IMHO the implementation complexity is > not worth it for such a tiny improvement. There is more important work.= Sure, it was just to point out this use-case, and since other tools can handle, maybe it is not so hard to implement. I'm totally aware this is a non-prioritary corner-case. --=20 Philippe SWARTVAGHER PhD Student TADaaM team, Inria Bordeaux Sud-Ouest From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 14 03:44:04 2021 Received: (at 50026) by debbugs.gnu.org; 14 Sep 2021 07:44:04 +0000 Received: from localhost ([127.0.0.1]:47398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ36q-0002FL-JR for submit@debbugs.gnu.org; Tue, 14 Sep 2021 03:44:04 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:5980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ36p-0002Ek-9z for 50026@debbugs.gnu.org; Tue, 14 Sep 2021 03:44:03 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3A/S1QWaCq3fJCXAHlHell55DYdb4zR+YMi2TD?= =?us-ascii?q?j3oBLSC9Afbo8PxG/c5rqSMc5wxhOk3I9ersBECgexPhHP1OkPYs1NWZLWzbUQ?= =?us-ascii?q?KTRekIh7cKqAeOJ8SKzI9gPNBbHZSWZuedMbEwt7ed3ODxKadY/DD9ytHKuQ/0?= =?us-ascii?q?p00dNT2DfclbnnxE4yigYzdLbRhxCYsyFZKa6MZwoDanEE5nE/iGOg=3D=3D?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="392885812" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 09:43:55 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Philippe SWARTVAGHER Subject: Re: bug#50026: Specify a pull-request in --with-branch package transformations References: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> Date: Tue, 14 Sep 2021 09:43:54 +0200 In-Reply-To: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> (Philippe SWARTVAGHER's message of "Thu, 12 Aug 2021 11:38:38 +0200") Message-ID: <877dfj8uv9.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50026 Cc: 50026@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi! Philippe SWARTVAGHER skribis: > 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 Any idea what makes this branches =E2=80=9Cspecial=E2=80=9D from a Git view= point? Guix uses libgit2 (via Guile-Git); perhaps there=E2=80=99s a feature here t= hat libgit2 doesn=E2=80=99t support, or perhaps there=E2=80=99s an additional s= tep to make to make those branches visible? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 14 04:24:33 2021 Received: (at 50026) by debbugs.gnu.org; 14 Sep 2021 08:24:33 +0000 Received: from localhost ([127.0.0.1]:47438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ3k1-0003Jm-0B for submit@debbugs.gnu.org; Tue, 14 Sep 2021 04:24:33 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:43641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ3jz-0003JY-MG for 50026@debbugs.gnu.org; Tue, 14 Sep 2021 04:24:32 -0400 Received: by mail-wm1-f47.google.com with SMTP id n7-20020a05600c3b8700b002f8ca941d89so1815998wms.2 for <50026@debbugs.gnu.org>; Tue, 14 Sep 2021 01:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=bqpvWyh2e8VfqE24OFq0k5cKbbddiR15g7kHYGmDCIo=; b=phbXnHDhsFKx8nCe2RxfC17b6nAyzKogT7OAizS+nDYFh6GxnIjLDeOQsyJNalOaX5 W6QzgkvodcNLwY0SB3cUPOENkJEVDMnXc61Scj917froJ9L+iwdKG+a5DJ3kOfSF80Mk R/TNbW2WPcdaXUuztVVzB2PckSDIluwaLCDkiLtsDjhApHDJmuenyzTjpSyCu2e9TMwv 9+P+MO77yUIQC18YLQRJExQNuozGxZ9jbPE66Vy6vPbxSqrhZwZJzbj/ZYyesaxoIeWW mTV4URuvrrbVppc9CWEHtq2h//OYEAArkvF0kHFO3CjFZyIon+9TQyzeGjTucz50/v61 bFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=bqpvWyh2e8VfqE24OFq0k5cKbbddiR15g7kHYGmDCIo=; b=5SekEN4NQiDudm2R4hDI1yjtOxgKeUiCkLARM0xJdCT/gKt8VaNC/OQIJtvUXjCL/n 38QSOd8W05yE3oro2vzzs7jJX/ttUPbZShK6Ff3SVxlyBu+lupMAD3o5wd97Jvg6DHrA 5QF1I7rsBsgiF/DBxwiPYJGaGYW2xiDPdSpHttCxDJAhPnbooFn02P/XPwu7hL37KJOl 2vMKXoIBVjSbMJavO9SbVFbCwqmb6P0JUUaiufV48fsFyn7+ARDu59OxU7NIUu/toKsG OLlKCz+qH5GO8v3SlcKaY/TBvuKtAbUAIoXAXlAaxHejr17aggzELmbJzcaXg+SkDjRu bPug== X-Gm-Message-State: AOAM533mtKuJBsJFpui+s/2mgtQCD9Oq+KesTXEV2pHfYCNkO6QcXZZO bY/1/tMzw0M5M7JJ+/hH3sGFCynI258jzA== X-Google-Smtp-Source: ABdhPJyK6BRpneK9nNjv587vqnHGWL3BN2sETNHm+iGx4MpyLWq0sKDdSucJmA+Jorh6gdSrJXVqLQ== X-Received: by 2002:a1c:2351:: with SMTP id j78mr788761wmj.40.1631607865825; Tue, 14 Sep 2021 01:24:25 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id t6sm407693wmj.12.2021.09.14.01.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 01:24:25 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Philippe SWARTVAGHER Subject: Re: bug#50026: Specify a pull-request in --with-branch package transformations In-Reply-To: <877dfj8uv9.fsf@gnu.org> References: <29e470a4-89a3-2ac1-1fbd-f4a747443fb9@inria.fr> <877dfj8uv9.fsf@gnu.org> Date: Tue, 14 Sep 2021 10:12:20 +0200 Message-ID: <86wnnjr2xn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50026 Cc: 50026@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Tue, 14 Sep 2021 at 09:43, Ludovic Court=C3=A8s wrote: > Philippe SWARTVAGHER skribis: > >> guix build chameleon --with-branch=3Dchameleon=3Dmerge-requests/262/head >> 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 > Any idea what makes this branches =E2=80=9Cspecial=E2=80=9D from a Git vi= ewpoint? I do not know but the branch is not listed after a fresh clone: --8<---------------cut here---------------start------------->8--- $ git clone https://gitlab.inria.fr/solverstack/chameleon $ cd chameleon $ git branch -av * master be19cc46 Merge branch 'fix-warning' into 'ma= ster' remotes/origin/HEAD -> origin/master remotes/origin/master be19cc46 Merge branch 'fix-warning' into 'ma= ster' remotes/origin/release-0.9.2 d2b4cab3 Fix artifact remotes/origin/release-1.0.0 da81c248 Update ChangeLog remotes/origin/release-1.1.0 4db899ca Merge branch 'next_release' into 'm= aster' --8<---------------cut here---------------end--------------->8--- So I guess the GitLab Merge Requests are =E2=80=9Cspecial=E2=80=9D branches= . Well, I do not know if checking the API makes sense ;-) All the best, simon