From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 07 04:12:21 2022 Received: (at 52152) by debbugs.gnu.org; 7 Apr 2022 08:12:21 +0000 Received: from localhost ([127.0.0.1]:59652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncNFc-0005tq-S5 for submit@debbugs.gnu.org; Thu, 07 Apr 2022 04:12:21 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncNFZ-0005td-T2 for 52152@debbugs.gnu.org; Thu, 07 Apr 2022 04:12:18 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8442B5C00C1; Thu, 7 Apr 2022 04:12:12 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute2.internal (MEProxy); Thu, 07 Apr 2022 04:12:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=munksgaard.me; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=hRLwbn5QEobewdNg3P3fF0npJjSey3 SH79RcRluP6b0=; b=LPIYba745yoiLl+dvACGsD4X6b4ygMjFiKFCpzarpsSeRt 4mObSFoUX2BzwBQGYWpPWA9upvlHAjddrlXHG1KKf0T35GFD93/VhtNRJwFYSSeg O6LSQt2eNUYVzzpK++l7F0b8QZBJTuP7P8rDj+3ZZhXVwGIyyxHZtjX0Tx1kQJJb pxR5N0Y8MUdl8BUANf9qunZsAgxzKiL1O0f92W2VgrvXgfGc8PDgcTNfCYuHjvpB yMGYYScLzwYFirq5a+b/Km3fMB8N3jy4QmgJ7rGWgFgFFhMz9Xnwz4ZRN/5CNdEB kydsOksvv/GvrTuUS82/1Z5NcXJsNycibsk2OKVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hRLwbn5QEobewdNg3 P3fF0npJjSey3SH79RcRluP6b0=; b=NCFEEZdo3kX6UTH5u9sfeNT/q3v6KJDQ5 xg+6kqwkfC8uj3NFtIZ8L6AUysadeVOqYrHEf8kQc7pv9UCBOxjAcbQ80fZeMHl4 wksdE9Q1KXRhsydtcqMRUTazX0AjcEUdkwTR37uzYyZWtjoGyHp/OVK7fN8Byu69 0I7V9H+q9sQW1SzjcEAnT598cHBT9K+oIOSQ7R7DO3uZBiWlKLq+CCII1ZST5rQD F2FpvaiWvvgoZJYD2jps3zIy27i2uU3DPo5x/m6A/MaIz9hLig/tV3XW+15sraAP jHJ3zisA9bdRou8hfa+Hb4kc9d/ENWCZmbzrWNJb+iNjdwWuo0gpg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejkedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfrhhhi lhhiphcuofhunhhkshhgrggrrhgufdcuoehphhhilhhiphesmhhunhhkshhgrggrrhgurd hmvgeqnecuggftrfgrthhtvghrnhepgfeguedujeeifedufffhvdfgleegfedttdejteeu hfevteetudevheetudeltedvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpsehmuhhn khhsghgrrghrugdrmhgv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3B68CAC0EAE; Thu, 7 Apr 2022 04:12:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-386-g4174665229-fm-20220406.001-g41746652 Mime-Version: 1.0 Message-Id: In-Reply-To: <86h77549ri.fsf@gmail.com> References: <87k0d44v5n.fsf@gmail.com> <86h77549ri.fsf@gmail.com> Date: Thu, 07 Apr 2022 10:10:39 +0200 From: "Philip Munksgaard" To: zimoun , "John Kehayias" Subject: Re: bug#52152: Haskell Hackage importer can create dependency cycles Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52152 Cc: 52152@debbugs.gnu.org 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 (-) Hi On Thu, 7 Apr 2022, at 09:45, zimoun wrote: > On Tue, 08 Mar 2022 at 11:04, zimoun wrote: >> 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. I don't think that's correct. My understanding is that it is common (perhaps even necessary) to include the library itself in the test-suite dependencies. For instance, the same thing appears in attoparsec. However, when importing attoparsec, they are filtered out, and indeed we even have functionality to filter out the package name [0], but for some reason that doesn't work for OneTuple. 0: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/import/hackage.scm#n225