From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sOFVNvOJpWLWHAEAbAwnHQ (envelope-from ) for ; Sun, 12 Jun 2022 08:38:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0CNYNvOJpWJsXwEA9RJhRA (envelope-from ) for ; Sun, 12 Jun 2022 08:38:43 +0200 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 AA12F95CC for ; Sun, 12 Jun 2022 08:38:43 +0200 (CEST) Received: from localhost ([::1]:44698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0HFC-0006r4-RI for larch@yhetil.org; Sun, 12 Jun 2022 02:38:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0HEY-0006p5-Lg for guix-patches@gnu.org; Sun, 12 Jun 2022 02:38:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0HEX-0003hQ-LW for guix-patches@gnu.org; Sun, 12 Jun 2022 02:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0HEX-0001SR-IU for guix-patches@gnu.org; Sun, 12 Jun 2022 02:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53828] [PATCH v2] import: opam: Allow importing local files. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Jun 2022 06:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53828 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53828@debbugs.gnu.org Received: via spool by 53828-submit@debbugs.gnu.org id=B53828.16550158545560 (code B ref 53828); Sun, 12 Jun 2022 06:38:01 +0000 Received: (at 53828) by debbugs.gnu.org; 12 Jun 2022 06:37:34 +0000 Received: from localhost ([127.0.0.1]:54487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0HE6-0001Rb-7o for submit@debbugs.gnu.org; Sun, 12 Jun 2022 02:37:34 -0400 Received: from lepiller.eu ([89.234.186.109]:40024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0HE3-0001RS-SV for 53828@debbugs.gnu.org; Sun, 12 Jun 2022 02:37:32 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 4ef78ea5 for <53828@debbugs.gnu.org>; Sun, 12 Jun 2022 06:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=daS3FrZUfUFq L5neELYEzP6edzplZCxal163SZA3uyE=; b=CeSAfgKydJ98d1K6ben28mExmu8x EOdjIrb7mbU56qu93omILVUD/7gmplTMu6lKiryCjA49r4tvTeq6bCgLJH4MbIJA 9FeV/Et0TmThkDh+hB/oijc+TOamOC2zJXTgoX2DNZh0M4y/AI4BhOrJOcV1Otzj 1ZM582nu2gmSNlSSIiNbIZhJb7YRlTSZ5HM0VyVTCy3Uf8cEb13I1pZYI3yX4/Om 5O/mzrxE4wUKUwtgyaHb01VcndQcQfrstQcm/4ImaOKgK3F3oTNuoXmHb0qq9GY6 YLpDa50QMtocEv/x0YX2k3z0bPEgcGuViiHny5LUmXJZH2emFwvaBJ6GsQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id b5c22065 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <53828@debbugs.gnu.org>; Sun, 12 Jun 2022 06:37:30 +0000 (UTC) Date: Sun, 12 Jun 2022 08:37:28 +0200 From: Julien Lepiller Message-ID: <20220612083728.4f6984e7@sybil.lepiller.eu> In-Reply-To: <20220612063121.26914-1-julien@lepiller.eu> References: <20220206224130.2220aae9@tachikoma.lepiller.eu> <20220612063121.26914-1-julien@lepiller.eu> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655015923; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=daS3FrZUfUFqL5neELYEzP6edzplZCxal163SZA3uyE=; b=N3MZCV5+mhYkPj7+CduMdbiNVWeL6MpeRe8i4zexfNsXOgjeZ6YQWe6/ncP4wI5yllYEB8 FZhR0lhgFxJFXO8Rj62J4CveiLFjZ9OS99OvBMfk9ZZrVU7rgNNr74vhWUdLh9fr351VR/ poF37j1gJpaIBp6/h/rwZrpbGs+GB0bbTIhoZ73lOkQbQ6FcgUwVfW8BVn/2Po8Bs0ngrZ K2Aqxcq4f+sg9WyYKIsENQ0rP+4oRMe8LVD2s0z0UKrbTJ1g0BMnXFRObhWMqSsMFTGSMB vfitFRHvfvqnho4C8Ec9/Abuz4PkIfHkEGKo2BSVuidZS8sZBzx+/bomMWA1YA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655015923; a=rsa-sha256; cv=none; b=M87KEM8borOWEAqEeSoy4Jgfnsmh70jTNjHx4o/zqHQk22hnfNP9uf691l2B0YcbtaQu39 j5kZ265X7d2rayZZMN6RZBWnATg3jrKTboXf6Hw6Rss6fMTwINXoI10ywr8h6x9N5OJ+Jz IFJqrMRktGiFjOi1brk6zdLZr9RoUvx2vQBrYewa3yFt/tZfiG/SfWN7kbFJKfxI4x+/RP kCHITcMxWwffP/jvz5+sc3UiKB6Ijayn3mbnj9/6BILTv93xVD5HYxn6zseVDgZ6sLM4TB 5s7rSXpife+Zaeml/H8r76B34/osvnArKd+dR/cyo5dIVdIf1VCRqZ7IdU3ffA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=CeSAfgKy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=CeSAfgKy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AA12F95CC X-Spam-Score: 4.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: zakmZmz8/5Sk As you can see, I've reworked the patch a little. Instead of a special #:file argument to the importer, I simply create an opam repository out of a given "project" (if you have a better name...). A "project" is an upstream source repository, either a local checkout or a remote git repository, that contain .opam files. The new version of the patch scans the project for opam packages and adds them to a local repository. When importing recursively, they become available, so countrary to the previous patch, you can use this for recursive import even when multiple packages are not in the opam repository but in the project (some projects split their code into multiple opam packages, like coq for instance). You can specify --scan-project multiple times, so you can import from dependent repos too. WDYT? :)