From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AAR8BwFV7mLjmwAAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 13:48:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sHBzBwFV7mI0AQEAauVa8A (envelope-from ) for ; Sat, 06 Aug 2022 13:48:17 +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 B4A5116556 for ; Sat, 6 Aug 2022 13:48:16 +0200 (CEST) Received: from localhost ([::1]:56632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKIHv-0008I0-VQ for larch@yhetil.org; Sat, 06 Aug 2022 07:48:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKIHi-0008Hk-Vx for guix-patches@gnu.org; Sat, 06 Aug 2022 07:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKIHi-0001h1-Md for guix-patches@gnu.org; Sat, 06 Aug 2022 07:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKIHi-0005cK-GX for guix-patches@gnu.org; Sat, 06 Aug 2022 07:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57016] [PATCH] scripts: Bail out when running pull/package commands as root. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 11:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57016 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: paren@disroot.org, 57016@debbugs.gnu.org X-Debbugs-Original-To: "(" , Received: via spool by submit@debbugs.gnu.org id=B.165978643321510 (code B ref -1); Sat, 06 Aug 2022 11:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2022 11:47:13 +0000 Received: from localhost ([127.0.0.1]:32887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKIGu-0005as-TE for submit@debbugs.gnu.org; Sat, 06 Aug 2022 07:47:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:43940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKIGt-0005ak-1q for submit@debbugs.gnu.org; Sat, 06 Aug 2022 07:47:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKIGs-0008FA-T6 for guix-patches@gnu.org; Sat, 06 Aug 2022 07:47:10 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKIGr-0001aC-C1 for guix-patches@gnu.org; Sat, 06 Aug 2022 07:47:10 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4D16540D85; Sat, 6 Aug 2022 13:47:08 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id EbWMRvyhNfUE; Sat, 6 Aug 2022 13:47:07 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659786416; bh=6vKYAPAOoUpltg9O+9sSfs58FItDWeaAJvuNd8L5D/E=; h=Date:Subject:From:To:References:In-Reply-To; b=mIlRZ/DUUvKc3c0f7r8KrcbvvS8u0M7FVHKLPtMl5+jB5KMEF7TKnR55ENZDbEUAa YwqZ1d8EBBvBOcO6yudJhfxx0LaFENHMEs6qNUoO+UsTp/3eXqzut1EpX+sOYV249i hP3b7p5T0z1z9QntlxWFe4IM1XbDJb17mkKwA5tHfZK80OjDdrYbdWEo1MkB9VmSd8 NoB9R1Qm26EUK5O17vpBsRGBygh1a2AxulZy3wnL5hmlnn6tiSI8Mu7alMLy48P1co RpG9iKm5vhv5pyiNmHJIlxRHX9SgH532MAykemkpDbQOMd/av9XBQF/uU7KMLr7AhQ DIrDQjafPCIiQ== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 06 Aug 2022 12:46:55 +0100 Message-Id: References: <20220806114153.23153-1-paren@disroot.org> In-Reply-To: <20220806114153.23153-1-paren@disroot.org> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659786496; h=from:from:sender:sender:reply-to: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: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=ENLDuCjE+TNZ1CNxilRXS7iwyM+7+KslWd9D66iNUp0=; b=EYN4cEpcXdQBrsqQLJxXs45zMhhrkypKgUiBvJ93j4cq+shA59gDA282KDspAo2Ahy6nkU px//ICR67yQ4McCk4MMXfrlloG79ZilqPRTnJd35vuJiu36AlPfztp9FiI5xdNSIuIPBRh eHlpsTGexTQGKGXYT0p8cq9W4d9Fb/bPsrKzVtkcRkfk9Y/rclkRXKUhYq5jF7er7Qrx1t /kCw9fUHDA20nGvUu5QLB2iu0JtL10EqXav8XA4IRG7GlOXGORk7NTFEbR5V7GC3nvP8hA Uf3FtCEMe0+1Gf+KODx/HunzS3PcSv72EsioN77fYe0UL3p36xbRanad30G0Yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659786496; a=rsa-sha256; cv=none; b=SEJzXoEQMek30op2IV5cA/U5XpPPlZFLH4Bnq7lT/qLPuyMGUhb2ouj+DASdJ7DD7mSQbk j1xxuwTFkQ75YzrQrJ5lbCsBM6O43R7bfAeqIaIYrhD25DmPQ90t6CgRzvVyGupRVycCWA OgcWdXF2fMV+kMi7TeabunpjWpiup53U7a4cmoNLS6+LoSZq0n8ZtecsXVfyNkJGEldVMn nq3jGymy3Nfu/o2TDvvYS1qqw6WRtktgZsu43dDgXxRaBsqEkIyQDMcbVRYOCjZRHITuex +qkZtyYeu5kR8qS9oXZKMiDPiXJhaqnvJ2tED/ZQaFhfnL3I1vahPr63LHrzIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="mIlRZ/DU"; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="mIlRZ/DU"; dmarc=pass (policy=none) header.from=gnu.org; 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: B4A5116556 X-Spam-Score: -2.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: zxvDjj968zvw This is my first patch that touches Guix internals (second if you count the dub-build-system patch, though I don't really consider that part of the 'internals' of Guix), so it might be a little wonky. I want to make the beginner's experience of Guix easier by eliminating 'papercuts' and unintuitive behaviour, starting with this patch. I hope it's useful! :D -- (