From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: bug#40893: import crate: Recursive importer loops Date: Mon, 27 Apr 2020 09:12:44 +0200 Message-ID: <1c05ff63-f5f7-f5c2-84d4-b255875c1f9d@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36766) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSxy1-00009V-VL for bug-guix@gnu.org; Mon, 27 Apr 2020 03:14:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSxxq-0002qE-PZ for bug-guix@gnu.org; Mon, 27 Apr 2020 03:14:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSxxq-0002q9-Dd for bug-guix@gnu.org; Mon, 27 Apr 2020 03:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSxxq-0006j2-9M for bug-guix@gnu.org; Mon, 27 Apr 2020 03:14:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:36570) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSxwo-0007cu-AB for bug-guix@gnu.org; Mon, 27 Apr 2020 03:12:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSxwh-0002P5-VN for bug-guix@gnu.org; Mon, 27 Apr 2020 03:12:58 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:51948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSxwh-0002N0-CJ for bug-guix@gnu.org; Mon, 27 Apr 2020 03:12:51 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499bZm4D5Xz1r6n9 for ; Mon, 27 Apr 2020 09:12:48 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499bZm46vKz1qrjf for ; Mon, 27 Apr 2020 09:12:48 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id soGKmKgRVhTp for ; Mon, 27 Apr 2020 09:12:47 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 09:12:47 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 90E3A600B0 for ; Mon, 27 Apr 2020 09:13:15 +0200 (CEST) Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40893@debbugs.gnu.org When running "import crate -r", the same packages get downloaded again and again. Depending on the package to be imported, this looping can take quite some time and the user gets the impression, that the import will recurse endlessly. I would expect the importer to recognize it did already download the package. $ guix pull --commit=ee8de7381  # to be sure the packages are not imported already. $ ./pre-inst-env guix import crate -r h2 ... following redirection to `https://static.crates.io/crates/rustls/rustls-0.17.0.crate'... ... following redirection to `https://static.crates.io/crates/webpki/webpki-0.21.2.crate'... following redirection to `https://static.crates.io/crates/webpki-roots/webpki-roots-0.19.0.crate'... ... following redirection to `https://static.crates.io/crates/webpki/webpki-0.21.2.crate'... following redirection to `https://static.crates.io/crates/webpki-roots/webpki-roots-0.19.0.crate'... ... following redirection to `https://static.crates.io/crates/ring/ring-0.17.0-alpha.1.crate'... following redirection to `https://static.crates.io/crates/ring/ring-0.17.0-alpha.1.crate'... ... following redirection to `https://static.crates.io/crates/webpki/webpki-0.21.2.crate'... ... following redirection to `https://static.crates.io/crates/rustls/rustls-0.17.0.crate'... following redirection to `https://static.crates.io/crates/webpki/webpki-0.21.2.crate'... following redirection to `https://static.crates.io/crates/webpki-roots/webpki-roots-0.19.0.crate'... -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |