From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2BOxHJCBFWF1BQAAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 22:16:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IG47GJCBFWECdgAA1q6Kng (envelope-from ) for ; Thu, 12 Aug 2021 20:16:16 +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 9C789F44A for ; Thu, 12 Aug 2021 22:16:15 +0200 (CEST) Received: from localhost ([::1]:53764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEH7d-00085O-R5 for larch@yhetil.org; Thu, 12 Aug 2021 16:16:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEH7S-000852-1n for bug-guix@gnu.org; Thu, 12 Aug 2021 16:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEH7R-0006el-RV for bug-guix@gnu.org; Thu, 12 Aug 2021 16:16:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEH7R-00005h-NL for bug-guix@gnu.org; Thu, 12 Aug 2021 16:16:01 -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 20:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50026 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: raingloom Received: via spool by 50026-submit@debbugs.gnu.org id=B50026.162879932632767 (code B ref 50026); Thu, 12 Aug 2021 20:16:01 +0000 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: A9a23:EOxVi6MDXAhhB8BcTqajsMiBIKoaSvp037BN7SFMoH1uHPBw+Pre/8jzuSWE6gr5O0tOpTn/Asm9qBrnnPYfi7X5Vo3PYOCJggaVEL0= 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 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-Mailman-Approved-At: Thu, 12 Aug 2021 16:15:12 -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: , Cc: 50026@debbugs.gnu.org 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=1628799376; 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; bh=cj/cnbeyn2ih+d38Ie2VS4UHCM2uTpz0aF7fXIJ24jY=; b=eZhhFZFdl+28C8QwATWj7YXdW6zrOoiYrrHG8yVKIUGXPOraIeDnewCaufVu8I4aC/wR7o k3Bp5ZnhrRvK3HXYEVoHm0LUDAkPybXOfYZ5YWcaoRta9LFyHPt7qExAV9Ya/gR92TLeJR cvV0cY1ataX5eRvMo7+EVLT27ujJL69EhKD1Lv5ffB0ZkCJFWRfJJOlTsLkK/O8SF32xQm NpVI9gnc1wXhPmLThtvEvMQwH2ZVunBkWyu7fg5qATUvfEshvC72fNXEDKG0f9RDvUuhnk 6rOKMVb7qjgf8YsgthuzicRet80tTmCo9aKOiX4BZcNEFuQ8o9+Ca5Ct3fKxIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628799376; a=rsa-sha256; cv=none; b=acz6Wkw0zNTNdEb53/njfOZtondNYld5ZMDvyYdsDGx8Xjaz/u/u+7gzD6wHgycboTUxur rcY4gVE+TDFfigUV1/RIy3U5sIZtA9cFUSTXoWxWOmrIwNJ9NoFIQWLcexZ2Dmb8mHjJVl Gv+xWsAwhvNOcwOeAl2T5quVla88nwPRuG39fvaolzUehUXa5oa5OoFuFWRwEiGWfy7cqs tfj9kx7e93keJiXCdY+K9MJSnM/7psh/IGtuccwkqTNDYayJbrJVDRW03sQbPuJqK/ReKa pQCw4kywe0JZ7jBDVnCYb4ph1f8Iu4bFSzU2JaiJ51mIESZffk6klsrMUJ8xeA== 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: 9C789F44A X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: ntcqkBKpSsHr 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