From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KH3SGXBFG2NutwAAbAwnHQ (envelope-from ) for ; Fri, 09 Sep 2022 15:53:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qGD8GHBFG2PZHgAAG6o9tA (envelope-from ) for ; Fri, 09 Sep 2022 15:53:52 +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 299A329DB3 for ; Fri, 9 Sep 2022 15:53:52 +0200 (CEST) Received: from localhost ([::1]:34830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWeS7-0005pz-Ar for larch@yhetil.org; Fri, 09 Sep 2022 09:53:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWeKZ-0002sa-EW for guix-patches@gnu.org; Fri, 09 Sep 2022 09:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWeKZ-0004cK-5b for guix-patches@gnu.org; Fri, 09 Sep 2022 09:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWeKY-0000Pk-M4 for guix-patches@gnu.org; Fri, 09 Sep 2022 09:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57694] [PATCH 0/1] Support for importing a specified version of a gem. Resent-From: Taiju HIGASHI Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Sep 2022 13:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57694 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57694@debbugs.gnu.org Cc: Taiju HIGASHI X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16627311021513 (code B ref -1); Fri, 09 Sep 2022 13:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Sep 2022 13:45:02 +0000 Received: from localhost ([127.0.0.1]:32907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWeJa-0000OL-Dd for submit@debbugs.gnu.org; Fri, 09 Sep 2022 09:45:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:44754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWeJW-0000Nc-BA for submit@debbugs.gnu.org; Fri, 09 Sep 2022 09:45:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWeJW-0002Gn-5B for guix-patches@gnu.org; Fri, 09 Sep 2022 09:44:58 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:35675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWeJT-0003qo-F5 for guix-patches@gnu.org; Fri, 09 Sep 2022 09:44:57 -0400 Received: by mail-pj1-x1035.google.com with SMTP id m10-20020a17090a730a00b001fa986fd8eeso5447540pjk.0 for ; Fri, 09 Sep 2022 06:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taiju-info.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=qa61AT+Keen57+x5PDRqstiVeL5TDbacCz638B67rVg=; b=m2KepiDMtPBNBe/bdVGax8B4yEpjB2AIy8x+PoKIfftz1rdc9KXAH8Kun+8yvemZyL iHZyqe8YX9BigASQp6FIKvgpzPnxnZX0JOXt57tSuKJjkEUPrQGh3duGSmqrDdbjweuN j2YPBDqt8ElMbSU0NqX6atTKZapY72qF3fVWVG7Kpxtcao60m2vN0LPqHrfbYLmOaWYP A6M+8J9p1eTXhxxuGmA6yGxQIuGtn8+3Lxu8GIho4Bnjk+LlezlGqd6qzcdvZt008U6k 1qr1ze2q7yGLtCY8mPos5O2gY/uVWffmJ5h3vL5I5vlogvqLIARaUiL8cqws8//eGBxg Xzmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=qa61AT+Keen57+x5PDRqstiVeL5TDbacCz638B67rVg=; b=FomCMbUaFPDstaj4Qf8xQERrqsALs6LvXlD9p8GpY2CZAjLoW6NqchVhEhND/bPwpJ c27odSftdE+XY3EJirvDjY7vP3AwPrSHmXz+xTjxxmTxPd+OMmqrB3cW9xs7mNW1k5KX wzLk8dgYhf6rT6UY29KnAUVhmyOxT7SbRE6eU8ZxXx/a7jOMiXDetga1qJzn1T0RvOav 8O40EW3MbmwjvREYMyqhkYFYOf5fR+8YnpBKUw02JoQo7AANAMfR4I+sfpxiuXqwVGS+ PTmBfliFF8CFBL/4s//CpX/SOoVTub24mQsTEx8skP387Do04JXWYxnF6ysa96qiF1cU gMdA== X-Gm-Message-State: ACgBeo3tyHxdd9YWv+reXY/4aDsSHEhGy3TJkZJNP5ATpSEpN9ApEJ67 1xrrkpV5MLHZTH5gCk3kYlt3el912tz6lA0c X-Google-Smtp-Source: AA6agR6PuB8wwdPRbQvmQu53EDhGypvBaVfJqdV7bT8qBhNY59mxTQETlLidfL0RygjFQqNnSfWyfQ== X-Received: by 2002:a17:903:248:b0:172:7520:db04 with SMTP id j8-20020a170903024800b001727520db04mr14038006plh.99.1662731092460; Fri, 09 Sep 2022 06:44:52 -0700 (PDT) Received: from Taix.flets-west.jp ([240b:253:ec40:2400:b7d1:436e:2d61:e925]) by smtp.gmail.com with ESMTPSA id m2-20020a170902db0200b0016909be39e5sm484656plx.177.2022.09.09.06.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 06:44:51 -0700 (PDT) From: Taiju HIGASHI Date: Fri, 9 Sep 2022 22:44:33 +0900 Message-Id: <20220909134434.18497-1-higashi@taiju.info> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2607:f8b0:4864:20::1035; envelope-from=higashi@taiju.info; helo=mail-pj1-x1035.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1662731632; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qa61AT+Keen57+x5PDRqstiVeL5TDbacCz638B67rVg=; b=hk+a7fsBYeGjwfw+s7qendUAoUXvxLT96ib8UD13yr+R3kyc74+GgRMq1Yrr+Pu4ui3QPT hRzgEzCsqyHY257P8Xep83zyLttqDKdRrnsWUPhMrqvdvgVnwgG6pNb2au3G6GvQGz+GDU IqFgn4Oie7JcYNID6CWPkfdf49yBpcYXNEcs/S8WhXWFpHEGipHqvzFUBQvBYgu2qsN60J MUWTfcHH5QNhc9QosTf1CwHRva/WOACm4AmGYubcmuE3EnLsWASXkVEtFCft33uctvybMC qCmiotxnJlzba7XQYKpNF70+ygijh+nCrkp2riGC/nxDO7CTkxMRL9mxtaLKlA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662731632; a=rsa-sha256; cv=none; b=daN0JLv7bwlH/lQafrDHuffQQZ3aXXzHuwpiZDJXOnNeBCnlGs3xaOerT5frf/i7427dwM U9MbFFY36AXOkt+agGTvR+4mLwhDossDTzvf4AmQhVGUeYy6bxmFbFRx4dggkBERPBjRD+ FxbaN6oI9w+08lSSZq3/x0FTYdTdcBawVnjax4XSmIusAT7C9rXIdAogzoHoEKam74ELr9 lKY1esEUwjqUI26Z5Mf4CCllctj+w8/8m5vk1JhUmqoLg1brizL3RElZRpYAMGZlfxNo3w 9Ib9BPTkwF9LSLvFox1BfY0m63h3nDAmWu2kuiCt81dSedLModAn5RmyI41FuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=taiju-info.20210112.gappssmtp.com header.s=20210112 header.b=m2KepiDM; dmarc=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.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=taiju-info.20210112.gappssmtp.com header.s=20210112 header.b=m2KepiDM; dmarc=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: 299A329DB3 X-Spam-Score: 4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: y8S/BDcER0T2 Hi, I've improved the guix gem importer. We can import a specific version gem by this patch. Hopefully, I'd like to improve gem-recursive-import so that become can import specific version dependencies. To do so, we need to implement a parser for the gem version string and a resolver to fetch the latest gem of the version range. (such as the go importer) It may be difficult for me, but I'll try later. However, this patch is not perfect, but I think that still useful. I recognize that I should modify the documentation, but I'm not good at English, so could you modify the documentation if you need it? Regard, Taiju HIGASHI (1): import: gem: Support for importing a specified version of a gem. guix/import/gem.scm | 19 ++++-- guix/scripts/import/gem.scm | 39 +++++++------ tests/gem.scm | 113 ++++++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+), 23 deletions(-) -- 2.37.2