From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0H8PD8z5W2PyhwAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 17:48:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wD3VDsz5W2OPVAEAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 17:48:28 +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 E413FBAC7 for ; Fri, 28 Oct 2022 17:48:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooRag-00059Z-RJ; Fri, 28 Oct 2022 11:48:14 -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 1ooRaW-00057Z-Bw for guix-patches@gnu.org; Fri, 28 Oct 2022 11:48:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooRaU-0005TZ-Cr for guix-patches@gnu.org; Fri, 28 Oct 2022 11:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooRaU-000533-2w for guix-patches@gnu.org; Fri, 28 Oct 2022 11:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58583] [PATCH 0/1] scripts: package: Forbid installation of the guix package. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Oct 2022 15:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58583 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: "\(" , Tobias Geerinckx-Rice , 58583@debbugs.gnu.org Received: via spool by 58583-submit@debbugs.gnu.org id=B58583.166697206419299 (code B ref 58583); Fri, 28 Oct 2022 15:48:02 +0000 Received: (at 58583) by debbugs.gnu.org; 28 Oct 2022 15:47:44 +0000 Received: from localhost ([127.0.0.1]:34101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooRaB-00051A-P6 for submit@debbugs.gnu.org; Fri, 28 Oct 2022 11:47:44 -0400 Received: from mail-qv1-f49.google.com ([209.85.219.49]:45630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooRa6-00050R-Pg for 58583@debbugs.gnu.org; Fri, 28 Oct 2022 11:47:42 -0400 Received: by mail-qv1-f49.google.com with SMTP id j6so4290168qvn.12 for <58583@debbugs.gnu.org>; Fri, 28 Oct 2022 08:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9c0vaPWJdBKehpCwXF7FmSn7XqMBVCaou5T2QLuFIh4=; b=bcWFlRYqnDl5L5h2mXgpfursuDWSk+bGD8fkPnVjLlzjzi35Aue51G7m9IcVGq3MaE hTODfrdcGLwknhFrQNLJKbR4g395Ip+wLBhwSUxTeT2qy8pjl0IAB89Su4Klhaw+X2PD TL8o9SihZDN+gZ/OoKGiA1CVoq6ne47QEb4uyHhDnPtRbaHzUvVNKvyg4Pm1xsc0bnv6 LT/OiLPV9VJO19aGunFJbAnpbEHqQvag1U3DntX0oEzBuDrDdJGoGd3gk0oSrm0Z2jdW l/mpYgs+ioKpjOlwL4vl/09ZShXRBU30ULygE2uIogti2uuofN/LUFR5Fq7qAM+Ij3fL uUSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9c0vaPWJdBKehpCwXF7FmSn7XqMBVCaou5T2QLuFIh4=; b=lX44T4PX6+Ngx+42aYZKUD0ND8Iud6DN0r44if/Am3LjajbjsIm9BXaL5aQcTi4P5a CwMNM9kTbgeQbKLN5BGaF/sCJMLRoAPWjjuOk0svGcldCchkCH8OuCSAH3lB46BtpIl7 E9oXYTncNNWCXiEn4PiFNNRyrYuHmZAbDk6WX8G4e1IYRhOAdH6ahbRim60V+Cv/Vova HOPNcymq6xquLq/sJoZtEc+jFAYucH8clIWC0QSyT9gJxVekRvJshPMDi+YekUSHypdh 7X3yL0YOwdLXQf1NbeyUgfPN9yj2TnQhbXcgXzCvpGfI1jKiViawi2eXs4ex9YY6X+4y N6Yg== X-Gm-Message-State: ACrzQf3nEHshoqANZVlVidVrPBwlzaDK+at4WB7FVIH1ZoYBkl9uBz44 UN03JlLvVLUQf1DJWktyG4I= X-Google-Smtp-Source: AMsMyM4aYRIUH1YjAKC97LJo2LZ9B4Iarwi6dyx047KHWAEAgRSp6YzrUND4SjeFI24d8z/54hF/0Q== X-Received: by 2002:a05:6214:242a:b0:4b9:98bf:92d2 with SMTP id gy10-20020a056214242a00b004b998bf92d2mr39638qvb.89.1666972053214; Fri, 28 Oct 2022 08:47:33 -0700 (PDT) Received: from hurd (dsl-152-179.b2b2c.ca. [66.158.152.179]) by smtp.gmail.com with ESMTPSA id v12-20020a05620a440c00b006eed47a1a1esm3147940qkp.134.2022.10.28.08.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 08:47:32 -0700 (PDT) From: Maxim Cournoyer References: <20221017121642.15468-1-paren@disroot.org> <20221017165057.15648-1-paren@disroot.org> <874jw2l3m6.fsf@gmail.com> <87ilk5hw3g.fsf_-_@gmail.com> <86a65g8k9a.fsf@gmail.com> Date: Fri, 28 Oct 2022 11:47:31 -0400 In-Reply-To: <86a65g8k9a.fsf@gmail.com> (zimoun's message of "Fri, 28 Oct 2022 09:44:49 +0200") Message-ID: <87k04keyr0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666972108; 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=9c0vaPWJdBKehpCwXF7FmSn7XqMBVCaou5T2QLuFIh4=; b=UjPsW8zmc3cHSYV03GucRsWRqbMyJ2bWfBCI7vN7sNIIDSdWz+ETihp3Z6yA5e+yTyEKzI VNupPO5tMteJ0k2r9O9rFkRy+kUN83MlSrKc1FjLo6T7oakR+MEPpHMEYaPa1Ztmklu31w EPoN5NzKRhCQuI3e7XyZ3/WrBkVNVuyLrmlWPvSi4pu9u6odhcmf+U99i4A5HR74S9S8nM P9IhBDCw8CO3s0eHokLMhzuROoNmlTU1/FcadokNS9EF3jIlJPOI9QPbuGzLGSWuL/BKIs /sOycVVYmxl/Um0hHT4xxNXm2cYXec6rni3urL5kfwrUKlg5bEW3x7pq0YwDQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666972108; a=rsa-sha256; cv=none; b=ndDyu+dOsZwmUpds4LC9A8V7WS0Q3JmRIN5Hqx8LkiuEhnwguWLohqt6pM89ONXAcryQ8Y DWYM/7ys1qnNoOVQF62y6aQSpZtbGFo4gNeJGAoN4yTw5oPqONsDxxCDwqQf1/wS6VTT7J 5p+gvbmUaDS92K/KSkDOSi6z6Feo0S9nHKMMXSZzMqVlgpIWfnUUo/s00TS4joABuW+i5n 8Ffz57UtEKVc6wZTshqkeD0h8gHt/xn6EvBIiKsC5devgO3E8chxbek6a38HI3iwCIpb+Q KEKWYdw3JYgYhn5Gix02BMR1kd6DxFSW8cc5m1RErp/O043U/euDUHgStz2wFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bcWFlRYq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bcWFlRYq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E413FBAC7 X-Spam-Score: 7.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: LJfhPkX7M9RH Hi Simon, zimoun writes: > Hi Maxim, > > On Thu, 27 Oct 2022 at 16:04, Maxim Cournoyer wrote: > >>>> + (report-error (G_ "the 'guix' package should not be installed~%")) >>> >>> Instead of an error, I would prefer a warning. Because, sometimes it is >>> useful to have this Guix library. :-) >> >> The Guix API would be available without having to 'guix install guix' in >> the first place, no? > > Not necessary or I am missing something. For instance, you want to > build some Guile application relying on the Guix library; similarly as > you have, say, guile-commonmark or any other Guile packages. > > Yes, it is possible to do without installing the package guix but it is > not handy. Aside, it is not always clear which revision of the API is > available when the package guix fixes it. > > For instance, if an user packs their Guile application using some other > Guile libraries including the Guix library, then for developing, it > becomes not possible to just locally create a profile. > > Well, I do not have a strong opinion on that, for what it is worth, I > would prefer a strong warning instead of an hard error. But maybe I am > missing something. Does the benefit of fixing the Guix API used via a user profile installed Guix package outweigh the cons of downgrading the version of guix used as the user's package manager? I don't think so. By installing the inner 'guix' into your user profile, you are basically downgrading its version compared to the one you used to install it. That's a pretty confusing thing to happen for most users. As paren suggested, I think it's best to enter a dedicated 'guix shell' profile with Guix when developing with the Guix API, else use the 'guix repl' ability to run scripts. It may be slightly inconvenient, but it's better than allowing Guix to be silently downgraded upon unsuspecting users, in my opinion. -- Thanks, Maxim