GNU bug report logs - #71887
Raise an error when extending a service type that doesn't support extensions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Richard Sent <richard@HIDDEN>; dated Mon, 1 Jul 2024 22:11:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Jul 2024 22:10:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 01 18:10:43 2024
Received: from localhost ([127.0.0.1]:35005 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sOPER-0007V5-3R
	for submit <at> debbugs.gnu.org; Mon, 01 Jul 2024 18:10:43 -0400
Received: from lists.gnu.org ([209.51.188.17]:39920)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <richard@HIDDEN>) id 1sOPEO-0007Uw-Po
 for submit <at> debbugs.gnu.org; Mon, 01 Jul 2024 18:10:41 -0400
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 <richard@HIDDEN>)
 id 1sOPEN-00053f-Lb
 for bug-guix@HIDDEN; Mon, 01 Jul 2024 18:10:39 -0400
Received: from mail-108-mta114.mxroute.com ([136.175.108.114])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <richard@HIDDEN>)
 id 1sOPEL-00080i-7P
 for bug-guix@HIDDEN; Mon, 01 Jul 2024 18:10:39 -0400
Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com)
 (Authenticated sender: mN4UYu2MZsgR)
 by mail-108-mta114.mxroute.com (ZoneMTA) with ESMTPSA id
 19070597c2300017a3.001 for <bug-guix@HIDDEN>
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Mon, 01 Jul 2024 22:10:31 +0000
X-Zone-Loop: 6cf732c21d9ba4a0574335b52e789ab5db6d013c1ef8
X-Originating-IP: [136.175.111.3]
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date:
 Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=P/7+yKseN0WFttFqK+M1My+09VFz3lTZ/XFv6XCbZwo=; b=r/VDD9zjMXsiaVsaGWEvo+9RDI
 yoBYnatDH+X5mo3uklk4C4WD9LxGUB5Y02bfN1REpeVEjRa14xMK2yidIZIiNn5SE1YmKsBVr1MBb
 eGoPRdHWDA1Do8UK7ms8Lnetq0foJ5Lh0mtRVTkBdbAkktLKSC3uTPt2VCA/d0UGj08M6x9njvIld
 1oqcUpv+KBzlF2nZWX+sa3hBiM/gL13h2c03YfqgmY9Zy/s6lnWsis+FfyLBFz0f488XIjy5Gq787
 /yNYlEMB99p8Cg+qXgezlW74oQvkb1UufB3+Yss54wlY4mpn9jQfMx/fmT6Naggjg4u57vxHZR5Hn
 QRO7H/4g==;
From: Richard Sent <richard@HIDDEN>
To: bug-guix@HIDDEN
Subject: Raise an error when extending a service type that doesn't support
 extensions
Date: Mon, 01 Jul 2024 18:10:27 -0400
Message-ID: <877ce4dar0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Authenticated-Id: richard@HIDDEN
Received-SPF: pass client-ip=136.175.108.114;
 envelope-from=richard@HIDDEN; helo=mail-108-mta114.mxroute.com
X-Spam_score_int: -16
X-Spam_score: -1.7
X-Spam_bar: -
X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,
 DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

Hi Guix,

At present it is possible to extend service-types that do not implement
compose or extend methods, resulting in surprising behavior that's hard
to debug [1]. We should throw an error when a service-type that does not
have compose or extend fields is extended.

--8<---------------cut here---------------start------------->8---
(use-modules (gnu home)
             (gnu home services)
             (gnu home services desktop)
             (gnu services))

(home-environment
 (services
  (list
   ;; home-redshift-service-type does not support extensions
   (simple-service 'this-should-error home-redshift-service-type
                   "According to all known laws of aviation..."))))
--8<---------------cut here---------------end--------------->8---


[1]: https://lists.gnu.org/archive/html/help-guix/2024-07/msg00000.html

-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.




Acknowledgement sent to Richard Sent <richard@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#71887; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 1 Jul 2024 22:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.