From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SFtcFLStFmbPHAAAe85BDQ:P1 (envelope-from ) for ; Wed, 10 Apr 2024 17:18:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id SFtcFLStFmbPHAAAe85BDQ (envelope-from ) for ; Wed, 10 Apr 2024 17:18:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BCCxYlxN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712762292; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+vOVWunZ3/l7HEjF1oNGYkscJbLB6QeLsSAneDkAFKE=; b=KkTWRnNY53o8BHwDTejrnO6T7GII2gol6NG2aVJn55/8IIZli8r67YiOzpDc5F15Qsm1Ha cUiK+QatWls/K3c7Rq/9OlvhTeHUeePMnAnMmxSVFNvPYF8ffgjBZ0p+i5+ipq2pYKbp9Z X1pSolH4+wDMUAA3t8x+6qvucr3tH4D1doNaBKQpYpyUZFmvzuwpcNThpSgBtHT5BUZPXB M9woCegph5yuk++88ArQiea4shh71wTFWrhbL6NyOut3kl6yBYKE3SnjCSQacFenLjx7rS edCF/MG0jLxu7CJbOMI5fjjm8who0bYuYUaOf4woM7smPZpa+SrJu3CHYTQ/MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BCCxYlxN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712762292; a=rsa-sha256; cv=none; b=ARMXovnbbsnmXlOGABEAEMgMoNPFd8oyQMMODP0smWS+hWB0Ytl1OvKwG6yEqSC5Iwph6I C4HtCh/r9QdASVYvMIDDLpwHpuj41WAdI2iSCsi8qjjWGPuZpNC0POpjflh0q01rpePrT8 wE/a1e6fdOcipmY1sc0NNJdEKx1HwctaqvemockBFv7ypKTJaz3yVJywEDgAWCVW3ELrkv 5sV7l8nYJ4a5h9O/pNd+WBxIQKlf9EQo3esiLFnMYpb04m3Lvp6hXGi5wzLr9KcqpefRxV xjXtnvQJ4JLpuWWjMCCmjjfJdp7mnIBf+/7BEhJue8lcro7tRsOKFYv5//npMA== 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 BAC1576366 for ; Wed, 10 Apr 2024 17:18:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruZho-000535-DU; Wed, 10 Apr 2024 11:17:44 -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 ) id 1ruZhm-00052m-RG for guix-devel@gnu.org; Wed, 10 Apr 2024 11:17:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruZhm-0002ad-IH for guix-devel@gnu.org; Wed, 10 Apr 2024 11:17:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=+vOVWunZ3/l7HEjF1oNGYkscJbLB6QeLsSAneDkAFKE=; b=BCCxYlxN1WdVleh/Qi8G kpFlorczcQivuom3+IdEzv/IgvXb0H366UjizgZUWsryenPfp6Q0GxaSC0rRHrWXzJ4LAyZ5LQj0d av2UOxPvL9m96Drv8hG78NQYOKnei09IKZEl80FlG7+Ak50CuWNF4TbciW5Sa6fnelhyyh+ijTaNE Fdjslfusz5NDhoHmDRADl0fDbRtFCj9t7mUg+obdgIQNQnJrj4bZBIVNVQnwC1ldiQnoXoeGqd3rM C1+E9RUC2KjCgxdMC9z758Rl9SkYpsEP57vQV/5wnm6nhDf5CAq10IwBvSRhhp+sVAglpPwMPBQwl gABavEKllgXKVw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel@gnu.org Subject: Re: The `channels' field of `operating-system' record In-Reply-To: (Tomas Volf's message of "Sun, 7 Apr 2024 18:05:57 +0200") References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 22 Germinal an 232 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de la Romaine X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 10 Apr 2024 17:17:27 +0200 Message-ID: <87y19li6wo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.14 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -11.14 X-Migadu-Queue-Id: BAC1576366 X-TUID: l271Y2+zjQfa Hello, Tomas Volf <~@wolfsden.cz> skribis: > After ~2 hours of digging I realized this is caused by the changes in > 883e69cdfd226c8f40b6e3b76ce0740b59857de6. > > I see couple of issues here (in no particular order, questions prefixed w= ith Q): > > * My configuration file just *silently* stopped working. > > That is not great for obvious reasons. > > * There is no news entry Oops, my apologies; the change felt pretty innocuous when I merged it, but in hindsight, it seems clear that a news entry was warranted. Lesson learned. We can still add that news entry, though fewer people will see it now. Thoughts? > * Broken default behavior. > > Currently, out of the box, extra-special-file with "/etc/guix/channels.sc= m" just > does not do anything. No error, no warning. That is pretty unexpected. Yes, why is that? At first sight, that=E2=80=99s because =E2=80=98extra-sp= ecial-file=E2=80=99 does things at activation time; there=E2=80=99s no check happening at configuration time. It was really meant for /bin/sh, /usr/bin/env, and similar. The reason its effect is silently dismissed in this case is, I think, because its activation runs before the /etc activation. So it=E2=80=99s really bad luc= k. I=E2=80=99m not sure what to do here, apart from maybe recommending against broad use of this service. > * There is no terse way to turn it off > > Currently my configuration contains this: > > (modify-services %base-services > (guix-service-type > config =3D> (guix-configuration > (inherit config) > (channels #f)))) Hmm right. You do want to create /etc/guix/channels.scm though, right? (Since you had it initially.) > * Q: Is there an easy way to fill (channels)? > > After I learned that (channels) is a thing, I wanted to use it, but did n= ot find > any simple way how to do so. My channels are in channels.scm produced by= `guix > describe --format=3Dchannels', and I do not see any simple way to pass th= e content > of that file into (channels). No, it does not accept (local-file). I tr= ied > just (read)-ing it, but that too does not work. That would be: (guix-configuration =E2=80=A6 (channels (load "channels.scm"= ))). > * Q: Is the default value right? > > Currently it defaults to %default-channels, which causes all this magic. = Would > it not be better to default to #f, so that it would do nothing magical ou= t of > the box and would be backwards compatible? You could still turn it on by > (Somehow? See above.) providing desired value. Yes, we could change the default to #f: it=E2=80=99s equivalent to =E2=80=98%default-channels=E2=80=99 but wouldn=E2=80=99t cause the undesira= ble side effect you experienced. Do you want to prepare a patch (or two)? :-) Thanks for your feedback, and apologies again for the inconvenience! Ludo=E2=80=99.