From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WA0ML/guJ2INfAAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 11:24:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SE/OK/guJ2KMeAEAauVa8A (envelope-from ) for ; Tue, 08 Mar 2022 11:24:56 +0100 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 668CE21D98 for ; Tue, 8 Mar 2022 11:24:56 +0100 (CET) Received: from localhost ([::1]:49226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRX1T-000220-Aa for larch@yhetil.org; Tue, 08 Mar 2022 05:24:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRWzf-0007dN-MH for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRWzf-0002BB-EJ for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRWzf-0001M7-As for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52152: Haskell Hackage importer can create dependency cycles Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 08 Mar 2022 10:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52152 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: John Kehayias Received: via spool by 52152-submit@debbugs.gnu.org id=B52152.16467349495104 (code B ref 52152); Tue, 08 Mar 2022 10:23:03 +0000 Received: (at 52152) by debbugs.gnu.org; 8 Mar 2022 10:22:29 +0000 Received: from localhost ([127.0.0.1]:55344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRWz6-0001KA-Nw for submit@debbugs.gnu.org; Tue, 08 Mar 2022 05:22:29 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:45771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRWz4-0001JR-80 for 52152@debbugs.gnu.org; Tue, 08 Mar 2022 05:22:26 -0500 Received: by mail-wm1-f47.google.com with SMTP id k29-20020a05600c1c9d00b003817fdc0f00so1144294wms.4 for <52152@debbugs.gnu.org>; Tue, 08 Mar 2022 02:22:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=zgd3Xr4Ykrn1qCc3GB+2gW1QNHZKMaMJDZuoZESvioM=; b=kBp1h+X487DXE/4HjB2hQaDHqabMPtubKNfZqTio8gMWapmwhObHGgCPb9EV0fzdIL ezYGrODQZlRHVMvkVbq1ITCiSTsTRfPE5FcaM89YBx/GP+3QoVOiMYz4HBE/IgP1/oUU 7/EJFFBO54oDMwfaENRjKNKNkOWE7mVYDL5L8U7M3FaydHeW7MxTOmxpMYXRAm+P+VcX z29mmu/GoyYf2T6dfBj8D8nBdUwgz73iCk81ooJStThYrhXpJu6/OD5UMXK5kUUPIVah U9paBLoKD5G/I6yQZhFdFMWXUXIMsGQl6F9T2V91D+5+N/2Efl7fbhtDcqSuv3DuKtTv LWuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=zgd3Xr4Ykrn1qCc3GB+2gW1QNHZKMaMJDZuoZESvioM=; b=pqvN+i2o6g1bOEvg+H2MOa4P4nMhVImiXRjQgN7j/l0Kj4RhLxLjWp+9zY4nR+A1q0 O+FnA8+/J7n1fwLhYOYx6TTNB3UJuXucpj61/r1wrQ8WhMafOeWNlmPDI4Vf/XpwLzRD 7Q0+wgAvHsZcqiQCabnLhwfWtkxUNgQJh8QuwgjkUtD+eGGPiy+t/9Z6lk4gfXlrWiPT lDuyOhAEOQVLb7nP3EqtcnIgBQ9eTJsw5cbGfk8i3NKLb3gjZUfrppszW0ULNHaKK1Op 0IOpSGXlTdu1wqWYi5M8/Uq5dHPuFhZgGcc/RtNTWm+MdZ1p4YQvJ1k4hv43am1xeRXO YUTg== X-Gm-Message-State: AOAM532Xg/q88Ltuzv/RB1M48S1EUeDaZh1FFE6dlrGfb9dGSchNMsh2 rg1bfRTVsTtV7cwC++PvpBr/z3SvZJI= X-Google-Smtp-Source: ABdhPJxtqd58xqKJ3/wpTyt3cdAnrG/yuaz1Y/PyRKEsm/80seabtnPQImpiu4jAKWDVWvhT/xEXvQ== X-Received: by 2002:a7b:c11a:0:b0:389:a2be:2a5a with SMTP id w26-20020a7bc11a000000b00389a2be2a5amr2933454wmi.25.1646734940572; Tue, 08 Mar 2022 02:22:20 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id r1-20020a5d4941000000b001ed89dcacbbsm13464345wrs.23.2022.03.08.02.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 02:22:20 -0800 (PST) From: zimoun References: Date: Tue, 08 Mar 2022 11:04:52 +0100 In-Reply-To: (John Kehayias's message of "Sun, 28 Nov 2021 02:50:12 +0000") Message-ID: <87k0d44v5n.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 52152@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646735096; 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:dkim-signature; bh=zgd3Xr4Ykrn1qCc3GB+2gW1QNHZKMaMJDZuoZESvioM=; b=Xz6bvTIBBg+dN/1T6vYndmE7tzm72GoXKzCweweFqwJ4L8kDuSZ9EuiQBtyxUUHnnuvlcK a+R2cVT7Cg8MW/z0REZdiTJ4eOSOk8TpYcdSpjve6Dn6cRKR5Ue1jBVtDXYNOWiVcB2z95 9Qh4bMMLB/5M9NucyqfqOuOKf89HCZTDKsTCKLOB7gaclzIGUWBqR/93hXxaGGFcBv4fWI cJbIYjOR6cO9dL1Afy5Sknt0vTINPF9ZZ6+JF+/lEjrSrzx8BdQW1ZrgedoaLSbTuKiRQn SvQJK+mAbSEqWAEfMhxFamOCSmY7ZVTMk5mQBexFv1uzmLEaurq25HG+/w+fQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646735096; a=rsa-sha256; cv=none; b=WvjIn4OcUH7fieBXNaD6zXqI664ddw2PXjno63rngPilqR/wb/TGemg5uhqiwLG6Zm52U3 etkbTmngtYgvrPV4NjsRcqHvrD2C72cRzi6So7lBWn8bgLwX0dfTrBKWhYWAsvXPbE20Pv 1DoaVW71XOIRt//W6rpJt2Nil8x27/RfTUugUsDiz/pI6Tw0z0zkJsthCbQSzvHRhPh/Z6 scs9VpEgH1Q0VdUMQWBbkEM9W6gM5KROxwMI2SCqAaBkQsLl1hyUfOoHlaPhmnnNF6PaUo 9OdmvDJRCarf5DAC+pgJMr0c4mmbwqaljft6gPfj74lxb9J7B2y1Bc1kt1SyFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kBp1h+X4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kBp1h+X4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 668CE21D98 X-Spam-Score: 4.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: z0tGOZonI9eK Hi, On dim., 28 nov. 2021 at 02:50, John Kehayias wrote: > While working on importing a bunch of Haskell packages, I came across > a cycle created by the importer (twice actually, but forgot the other > one). Perhaps this is from the metadata from Hackage, as it doesn't > create the cycle when importing from Stackage. Here are the outputs: The difference comes from upstream: - hackage fetches from https://hackage.haskell.org/package/OneTuple/OneTuple-0.3.1.tar.gz - stackage fetches from https://hackage.haskell.org/package/OneTuple/OneTuple-0.2.2.1.tar.gz Therefore, it is not the same version. Let compare: --8<---------------cut here---------------start------------->8--- $ guix import hackage OneTuple Starting download of /tmp/guix-file.7VmwVe >From https://hackage.haskell.org/package/OneTuple/OneTuple-0.3.1.tar.gz... =E2=80=A6.3.1.tar.gz 5KiB 3.8MiB/s 00:00 [#############= #####] 100.0% (package (name "ghc-onetuple") (version "0.3.1") [...] (base32 "1vry21z449ph9k61l5zm7mfmdwkwszxqdlawlhvwrd1gsn13d1cq")))) [...] (inputs (list ghc-hashable ghc-base-orphans)) (native-inputs (list ghc-onetuple ghc-onetuple)) (arguments `(#:cabal-revision ("2" "0gk0656igxl0km9kgh8v7b5vq74kla59ka9hvpzq57njr6bc0j58"))) [...] (description "This package is a compatibility package for a singleton data type . > = data Solo a =3D Solo a . Note: it's not a @newtype@ . @Solo@ is available in @base-4= .16@ (GHC-9.2).") $ guix import stackage OneTuple Starting download of /tmp/guix-file.WpQBJV >From https://hackage.haskell.org/package/OneTuple/OneTuple-0.2.2.1.tar.gz... =E2=80=A62.2.1.tar.gz 10.9MiB/s 00:00 | 3Ki= B transferred (package (name "ghc-onetuple") (version "0.2.2.1") [...] (base32 "15ls6kkf953288q7rsc49bvw467ll4nq28hvsgbaazdn7hf75ixc")))) [...] (arguments `(#:cabal-revision ("1" "03mygfz7lv6h0i30bq2grvmahbg9j7a36mc0wls2nr81dv9p19s7"))) [...] (description "This package provides a singleton tuple data type . > data OneTuple a = =3D OneTuple a . Note: it's not a @newtype@") --8<---------------cut here---------------end--------------->8--- And the "cycle" seems expected from OneTuple.cabal: --8<---------------cut here---------------start------------->8--- $ cat OneTuple-0.3.1/OneTuple.cabal cabal-version: >=3D1.10 [...] test-suite th type: exitcode-stdio-1.0 default-language: Haskell98 hs-source-dirs: test main-is: th.hs build-depends: base , OneTuple , template-haskell --8<---------------cut here---------------end--------------->8--- Well, for what they are worth, based on this remark, two points: 1. I do not know what could be done on Guix side. An idea? 2. Usually, it is recommended to follow LTS and so Stackage. Cheers, simon