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 ms0.migadu.com with LMTPS id 2MBsOwyZTmLndwEAgWs5BA (envelope-from ) for ; Thu, 07 Apr 2022 09:55:56 +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 EFTbOAyZTmK/fgEA9RJhRA (envelope-from ) for ; Thu, 07 Apr 2022 09:55:56 +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 83C8213E4F for ; Thu, 7 Apr 2022 09:55:56 +0200 (CEST) Received: from localhost ([::1]:35882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncMzj-0005bG-Lb for larch@yhetil.org; Thu, 07 Apr 2022 03:55:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncMys-0005PJ-6w for bug-guix@gnu.org; Thu, 07 Apr 2022 03:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncMyr-0005I0-Ui for bug-guix@gnu.org; Thu, 07 Apr 2022 03:55:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncMyr-0005RT-O2 for bug-guix@gnu.org; Thu, 07 Apr 2022 03:55:01 -0400 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: Thu, 07 Apr 2022 07:55:01 +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.164931806720876 (code B ref 52152); Thu, 07 Apr 2022 07:55:01 +0000 Received: (at 52152) by debbugs.gnu.org; 7 Apr 2022 07:54:27 +0000 Received: from localhost ([127.0.0.1]:59606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncMyJ-0005Qe-4M for submit@debbugs.gnu.org; Thu, 07 Apr 2022 03:54:27 -0400 Received: from mail-wm1-f50.google.com ([209.85.128.50]:52748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncMyI-0005QR-AB for 52152@debbugs.gnu.org; Thu, 07 Apr 2022 03:54:26 -0400 Received: by mail-wm1-f50.google.com with SMTP id r7so2961443wmq.2 for <52152@debbugs.gnu.org>; Thu, 07 Apr 2022 00:54:26 -0700 (PDT) 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; bh=btENqLJD/TDyMBwzSAdNckthnuDA0n1xJybwnNrt9CA=; b=QdOwSDk56s5U1juPbAErUitcmYbqLaQExeLUdKsIDclh7288a1cR/NnBEW/vKeQORV lR0i/ozL3QFsYdV8V1p4W9tZoVKNISQEhOQ1kDxxQwHbJtlCT4eqf7iVz4755t/T+jIF UonNg17wk6ccRfM56aH8/wGYdaCcj+e850v4CL0sDxelkCTpIzibXQW+mJWCm66S/oPH xIXeW9O7FaILUkSZjNoyG22gUkHkKr6QoH60oZuDBkSjwVUUxdaPW1ZzyfLcNP+AbzJA 6oil5hFg8UYrZlv6DdksAet4HjVWtw/8Cl4Mp58Ec5abKMdoXA4gBB/zV2a8qAcjEtY7 BSDA== 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; bh=btENqLJD/TDyMBwzSAdNckthnuDA0n1xJybwnNrt9CA=; b=OocVi0PsJS8INqV4t024wXozUibOI+bLD0qXYTFSyLxvXhGlIs3Q9tUT1Nixm93Iqs yfhr+VSi/jKkfdWgKsKv9vMFvZ+j0u7Uk7lHSsc1WV0sySkhYnL1FlPtk0E6tzo7d1qi fIjcXm5EZ15de/aklSrHIL1AwHt04iZ/eyix/yWJJFpQw67+njpOCMTGBwO9Cztft49n aK8s5dfFq/qacEJIEK0ljSyV0FB4Bu7XTuWK9xy9aiLrJusgZ0rEpyUyd6xDMlLfqNzd MnX+G13E2I+uQ1lKEGsBGwi2/SEgH20HeXGt/HWySzkkr1IZr8ZGL/aTmt76pKzEpxI9 rk3Q== X-Gm-Message-State: AOAM531YoXRHYCaCjy3KCXzlqtNSQVhR9ImDwiGXvf6VROmJzL6Bntg2 /QqItgCGcrrknZyboUOBGp8= X-Google-Smtp-Source: ABdhPJwVqFmuPVgb+tAQGMZPjX2hOZHdbBSFT8pklmhavqHBd5thmMpo2SjKCwRjdLUjTj4nNjQRAw== X-Received: by 2002:a1c:2744:0:b0:382:a9b7:1c8a with SMTP id n65-20020a1c2744000000b00382a9b71c8amr10690568wmn.187.1649318060395; Thu, 07 Apr 2022 00:54:20 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id r4-20020a1c4404000000b0038e6fb9b4fesm6854221wma.48.2022.04.07.00.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 00:54:19 -0700 (PDT) From: zimoun References: <87k0d44v5n.fsf@gmail.com> Date: Thu, 07 Apr 2022 09:45:21 +0200 In-Reply-To: <87k0d44v5n.fsf@gmail.com> (zimoun's message of "Tue, 08 Mar 2022 11:04:52 +0100") Message-ID: <86h77549ri.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-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=1649318156; 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: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=btENqLJD/TDyMBwzSAdNckthnuDA0n1xJybwnNrt9CA=; b=kO/VZcU7tUkZW9nPFuCOA3OZ857E5r1v2RCiCirKV7HFgB6n4Jtv5+ldy4WC4SWa8pr/O9 RtPs0HUqSBaehpOJwOEDane+spD5yxFGenuIgQX8CIhz2a+dQw3lqe+mCM8haxDyiJ+ZAN VTdpgwwr57Hw4+G+P/PWr6JYrNQhYW2ZV3KImyShoEJaOscU31MFn+wDQayqx+4m3AtZhm FNlGdoQJJnnwYgFI6zkO2i1y1biapVyTvaoTu9x2LGVpBks29LA/s3hHYQJYlA9QPmIBx5 Efoiv34YyIGrjtn9W60bmf7y24ouRt5ucwoZOXh0Xk7JUdfLXCVnGKholUaQbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649318156; a=rsa-sha256; cv=none; b=fdHDjBx2VTZm/cLzUgUkJbAgeHYYydgG5a3X3mXpjfA2jurm/CDZA36gfhxoT7tWK+7r7W lJoZ8VyMUkifpdlNa5FjQlTP4uTn1Dv9GzgqANPMl3iXTCkxRZQtb90ABeqbfCok+AB37A YozdmkgJZdrTTR9jWy3rNz+O7XKNilFXe7Oyi8Z6fjgGYtuTpVdKqN1pIj0PlN7Ad/+fs7 8tYseERUKKal4rD6uHUgKPM9SpzXBSaJD/4G3ia9zhU1G8pz2keiy556ND6J+IviaSxp75 nB5qWwio5kE+SiXwAic+ryMVD4/32nvisii+ZDp6cjhC7roumW9FHDWNJOnVVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QdOwSDk5; 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: 5.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QdOwSDk5; 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: 83C8213E4F X-Spam-Score: 5.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: O8lBAs4GzC0U Hi, On Tue, 08 Mar 2022 at 11:04, zimoun wrote: > 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: [...] > And the "cycle" seems expected from OneTuple.cabal: > > $ cat OneTuple-0.3.1/OneTuple.cabal > cabal-version: >=1.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 > > > 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. I do not think it is a bug from Guix but a bug from OneTuple upstream, not in their version 0.2.2.1, and introduce by their version 0.3.1. We could introduce a detection for cycles. But nothing is broken or raise a Backtrace. Somehow, the importers are some helper and not bullet-proof one-to-one mapping, IMHO. I propose to close this bug if no more idea. WDYT? Cheers, simon