From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yFd/EN7Hu2UpCAEA62LTzQ:P1 (envelope-from ) for ; Thu, 01 Feb 2024 17:33:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yFd/EN7Hu2UpCAEA62LTzQ (envelope-from ) for ; Thu, 01 Feb 2024 17:33:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NrCfFkbM; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706805214; 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=Fg4eeui2ChotcA6k1hGjZMCOFJLkDqCOunrLtZc/PaE=; b=PFdO9Zul/p0l8w1N4y+LjkPhRqGwwe63NiPGtSY1pmWyHionP/DElN67vWplScXuXPw1ep 7UVHGm2umWKOlflHARabCq+Mk6afKeAoG2h4aAdZn/4X6uS5kW+PuqfDr+Ic2J3K6asSHc 3zS3qF6Pf1RAH2rRJTixwORalvzX/niUpP+eALYGp7j/pPhQe2H5Umw9pgqjQAy3k7956x Fsn9WOYQu6jgkTMlfhJbjIfgCom/xnqNbUOPscEneQjYkmxw5K61Ym5wvDyiUZ9cXsv9V/ D7WhoIdkc8BcpjxfoJ04zk3ndpKCBeNOmplWQ5+/cxQJMY5Zz7Z98LfSslavdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NrCfFkbM; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706805214; a=rsa-sha256; cv=none; b=BgSLZrS0gNY2uOnt75Rutk35ZYXM2bu8gUppjq3s/+X0uN83gGRDcY8zvk260/iNwWOXq4 vJhXheDYGz5PR5C3LUgUOTVFsZiEAgis8Nd1MIX3l1GZ39EiSluJnewPhuLn8ca/qGyWJd usuyQKnwg6zbWwno3EEbeXmQq6TAf2gsHDFbif2Gav2+otVIrdfMVFQKkLlEycOmGffV5c N9fsKaWyYRDem+R7kFhEBJva3hN9eNd6Wj6KsGMD7g0FhgcoN93VB0/Op5u6F8p7JRLi7e yavbhEUwmJVDOoMmqLPynyRcjNsjprS6/ruf9iU1AA+eeHhDsJ/nukfZSGl4Ng== 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 EC53B337AD for ; Thu, 1 Feb 2024 17:33:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVZzr-0003gK-2G; Thu, 01 Feb 2024 11:33:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVZzh-0003VF-45 for bug-guix@gnu.org; Thu, 01 Feb 2024 11:32:56 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVZzg-0006nD-LF for bug-guix@gnu.org; Thu, 01 Feb 2024 11:32:52 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVZzq-0000qY-Oi for bug-guix@gnu.org; Thu, 01 Feb 2024 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68835: Resolving package inheritance issue Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 01 Feb 2024 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68835 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Sharlatan Hellseher , 68835@debbugs.gnu.org Cc: dev@jpoiret.xyz, othacehe@gnu.org, ludo@gnu.org, me@tobias.gr, rekado@elephly.net, guix@cbaines.net Received: via spool by 68835-submit@debbugs.gnu.org id=B68835.17068051373143 (code B ref 68835); Thu, 01 Feb 2024 16:33:02 +0000 Received: (at 68835) by debbugs.gnu.org; 1 Feb 2024 16:32:17 +0000 Received: from localhost ([127.0.0.1]:43059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVZz7-0000oc-BX for submit@debbugs.gnu.org; Thu, 01 Feb 2024 11:32:17 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:40979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVZz2-0000oM-IJ for 68835@debbugs.gnu.org; Thu, 01 Feb 2024 11:32:16 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40ef107b38aso917215e9.0 for <68835@debbugs.gnu.org>; Thu, 01 Feb 2024 08:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706805116; x=1707409916; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Fg4eeui2ChotcA6k1hGjZMCOFJLkDqCOunrLtZc/PaE=; b=NrCfFkbMAa1sBfunjI4Ds1xH+TuDIPbnSI0tVl+SQFsj5MHkCax4WwFSmvadzOCjMo iqlabj6DsR7n9MDFZa2Lf9to0WONyvX6KKpQMh7xPOmXQyGaqnpPZO7C92ewZpkSJFC5 5gOmqeWr8lEBxfQ2eSOw0XWl36MUq15SEKr4zZcCAkO/kdzY7GksfST0jf5rQ27Zl5Bg VX/C2ID3B6LuTMKi+ZYcLLL4WDZohxg5Oy+N2U/ZiwopXjBfqssE7+pP9wZAqFNbL6Wj KsizaL8VbfdMo1F9vVPEvta5uBinf4LOh9y/jHPYoXO4ZVdITpReqfmvH1wDs6KIB24V t+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706805116; x=1707409916; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Fg4eeui2ChotcA6k1hGjZMCOFJLkDqCOunrLtZc/PaE=; b=ltucbfD85aU/gjMu2K3DB64h5RSJEnrVrWryZuXSaN+kpVGPXShsI/H+UavDVJY4BO GPfcwUGnMyGr0WA/Q901z6E3tGteTpSXyZT7yGo+zaK7gj2xZBtzAY4ODW38oyizOS7z UdDHnH0Yy6xghTf115irAP/l7Rz0QvSKR0tbMjUa4FNkptR/J5ZbXs/iRA73JmbA2xYq isf3wLmfVxNSKdZxEduYm7IkNSJWY3kl1SVB+aDwvuRt/4MCeACRaSLeLKMiOivjH23N T5npuSeLHOPU5El3k0rJAKyOddlR2JyAiRjUjqbUQh69DG2tIXdBbKoqLnnFJBLciE4k YMAA== X-Gm-Message-State: AOJu0Yy+aD8EE86GmuDTDV3fWb6puWq0bOnm6NvjPARW0iIQwUhJHwJ3 D/OW8zrF3hQMRrFXx2eK/0tTVdwE/U395O2l2s97eKNI7p2v4NaT X-Google-Smtp-Source: AGHT+IHPKrHuz71+TfxGM3zlH8/VhfYzIULxEjKIWyuQtT85EGdMc9UbEePYE/4/r9aid5+JppYtbg== X-Received: by 2002:a05:600c:1e87:b0:40f:afd7:47e0 with SMTP id be7-20020a05600c1e8700b0040fafd747e0mr2571408wmb.4.1706805116273; Thu, 01 Feb 2024 08:31:56 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWA3xI6NEr9alPzZ4+v/Bh1jDWcIoxjMd/ns9cxXc9bmcSCpHYhgHyUHSARzAS81BJyVvU0b7c1cfQZYaBInARtl24tACo7AtNes4a2RsX0TcvOMisoTKXFxGNo0WV7sKg1UmItfk2EYv+kG08qeXIRVtVmM5SR1ojItINq8Nmii53sTJ0b8N/n+5Cz4cdmQP9B5zFjxUbwLN4= Received: from lili ([81.255.72.129]) by smtp.gmail.com with ESMTPSA id g7-20020a05600c310700b0040d8ff79fd8sm90283wmo.7.2024.02.01.08.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:31:54 -0800 (PST) From: Simon Tournier In-Reply-To: <87sf2es4cc.fsf@gmail.com> References: <87sf2es4cc.fsf@gmail.com> Date: Thu, 01 Feb 2024 14:27:24 +0100 Message-ID: <87v878e2mb.fsf@gmail.com> 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.33 X-Spam-Score: 2.33 X-Migadu-Queue-Id: EC53B337AD X-Migadu-Scanner: mx12.migadu.com X-TUID: 2eP69eshf/XQ Hi, On Wed, 31 Jan 2024 at 01:01, Sharlatan Hellseher w= rote: > My rational was to keep golang module in (gnu packages golang-web) and > the new inherited package providing executable in (gnu packages web) > which introduced the regression. As said by Josselin, the manual provides some explanations for this kind of situations. https://guix.gnu.org/manual/devel/en/guix.html#Cyclic-Module-Dependenci= es Roughly speaking, your proposal for Go language packages breaks because more or less =C2=AB Because the =E2=80=98inherit=E2=80=99 field is not dela= yed (thunked), it is evaluated at the top level at load time, which is problematic in the presence of module dependency cycles. =C2=BB The =E2=80=9Cfix=E2=80=9D would to wrap it using a procedure; as explained = in the manual. Something like: (define (make-minify) (package (inherit go-github-com-tdewolff-minify-v2) (name "minify") (arguments (substitute-keyword-arguments (package-arguments go-github-com-tdewolff-minify-v2) ((#:install-source? _ #t) #f) ((#:import-path _ "github.com/tdewolff/minify/v2") "github.com/tdewolff/minify/cmd/minify")))) =20=20=20=20=20=20=20=20=20 Well, then it is not clear for me how the user would access to this package but somehow that=E2=80=99s another story. :-)x As Josselin, I would suggest to keep in the same Guile module the original package and its variants created using =E2=80=99inherit=E2=80=99; = well as the general rule. Cheers, simon