From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 25 19:28:47 2020 Received: (at 44030) by debbugs.gnu.org; 25 Oct 2020 23:28:47 +0000 Received: from localhost ([127.0.0.1]:37941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWpRO-00023u-5M for submit@debbugs.gnu.org; Sun, 25 Oct 2020 19:28:47 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:20218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWmyR-0006ab-Ku for 44030@debbugs.gnu.org; Sun, 25 Oct 2020 16:50:44 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4CK98s2cw0zQl95 for <44030@debbugs.gnu.org>; Sun, 25 Oct 2020 21:50:37 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id m1NgxHA1VhhP for <44030@debbugs.gnu.org>; Sun, 25 Oct 2020 21:50:32 +0100 (CET) Date: Sun, 25 Oct 2020 23:50:32 +0300 (TRT) From: Lulu To: "44030@debbugs.gnu.org" <44030@debbugs.gnu.org> Message-ID: <1850369330.68130.1603659032091@office.mailbox.org> Subject: guix import pypi foo@1.2.3 breaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -2.95 / 15.00 / 15.00 X-Rspamd-Queue-Id: 146BF15 X-Rspamd-UID: f822a1 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44030 X-Mailman-Approved-At: Sun, 25 Oct 2020 19:28:42 -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: -1.7 (-) I just sent in a patch to fix this for the pypi importer, although ideally we'd want versioning support for all importers with a uniform syntax. I poked and prodded at the RubyGems API to see if it can do what PyPI can. It's unfortunately much more limited: API v1 provides a method for querying all versions of a gem [1] and v2 provides a method for querying specific versions of a gem [2], although neither of them provides information about dependency versions, so we can't rely on it for recursive imports (since it would try to import latest versions of all dependencies). There's a method that fetches dependency and versioning info for all versions of all given gems but (probably due to the verbosity of JSON/YAML) it's in binary Ruby serialisation format [3]. I can try to hack a parser that surgically extracts dependency info from a given gem version. What do you think? ELPA runs into a similar problem in that it provides tarballs/files for older versions but dependency info is only provided in the repo file. (MELPA tries to directly peg all packages to their respective Git repos' trunks.) I presume it's much simpler with the gnu importer, as it's only a matter of pointing the FTP fetch in the right direction, although I couldn't confirm it, as the gnu importer doesn't work for me since my ISP blocks PGP keyserver ports. I need to take a closer look at CRAN, CPAN, TeXLive and opam. -- Lulu [1]: https://guides.rubygems.org/rubygems-org-api/#gem-version-methods [2]: https://guides.rubygems.org/rubygems-org-api-v2/ [3]: https://guides.rubygems.org/rubygems-org-api/#misc-methods