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 YDoiG5/Q72Np7wAAbAwnHQ (envelope-from ) for ; Fri, 17 Feb 2023 20:08:15 +0100 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 OPoRG5/Q72NPvQAAauVa8A (envelope-from ) for ; Fri, 17 Feb 2023 20:08:15 +0100 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 43D0A3AC14 for ; Fri, 17 Feb 2023 20:08:15 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=N2yhN91Q; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676660895; a=rsa-sha256; cv=none; b=NqNywBrSkxF9Cf8kI99WfXo2vIGg2ROe/EDFdtfRDhiQZJjCPWZDfO1r74kufXM3EE8fbD ApprMjJlpiF4BTSPqhyAqsbReT1SuytwKQFsoRuvHticAZ/e/C8SVwA2TtPtbId97NgZVo 8NekxyLgY97Qt0v8zhj4i1pZx+AxfmhlSQslBUc4xiv3+9FrbIoCtGCTqNOIQcpCt6tpWu Qi/c0S2DffL7g7+wC1y1NpNI4+Dq2UasaFsJJQCPohcSIPRI8S8aVxHfFUxfTBv6M4NdLV eC119+VzFXLzBXFcB4yKO5feXMw7bU51o1BIgoWy8v12QkZlwB8cEnlTpaotIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=N2yhN91Q; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676660895; 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=Pbi9suJzwQ2/WD7O7rhYZAG6KA6/NreUZ+EAI0La8us=; b=ue0o8Yv2jzp3bvnTsIJKPlqW8N44pmrTrny8s9P1O3wmJ0esHIrSijkc1SSLQPZIw5SC1t cIM9jRVENdVXYsk6ixNaULn7OQRmun6dxfmlRpx+Zk47ljO8shTLPCXtkvSUkG9YqUSMkf 2YrXovYo4/4suxfEOJUG/ObHw0++xv06f7Gpk2CltjdAyDKvg37caTWa0vdrez50+h8Mx+ SlpQynUyd02IaSG0kXzbQ8hXH5vNTU6sDJwEYL7Jb89Qttwi4mLT+JkhvE0zYnSDGLVfk1 CsV3MHJznMVJ8X0q55HRaHKtuoRyDpJhnmnU5OhHjeoMd4YBLDtYnt20T/w/EQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT65U-0002LI-Ae; Fri, 17 Feb 2023 14:08:04 -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 1pT65S-0002Km-Rt for guix-patches@gnu.org; Fri, 17 Feb 2023 14:08:02 -0500 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 1pT65S-0003Vm-JZ for guix-patches@gnu.org; Fri, 17 Feb 2023 14:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pT65S-0005Ga-EY for guix-patches@gnu.org; Fri, 17 Feb 2023 14:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61246] [PATCH v3 2/3] doc: Explain how to use local guix repositories. Resent-From: =?UTF-8?Q?Andr=C3=A9?= Batista Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Feb 2023 19:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61246 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61246@debbugs.gnu.org Cc: =?UTF-8?Q?Andr=C3=A9?= Batista Received: via spool by 61246-submit@debbugs.gnu.org id=B61246.167666083120156 (code B ref 61246); Fri, 17 Feb 2023 19:08:02 +0000 Received: (at 61246) by debbugs.gnu.org; 17 Feb 2023 19:07:11 +0000 Received: from localhost ([127.0.0.1]:41548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT64c-0005F2-VD for submit@debbugs.gnu.org; Fri, 17 Feb 2023 14:07:11 -0500 Received: from mx0.riseup.net ([198.252.153.6]:50960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT64b-0005En-7H for 61246@debbugs.gnu.org; Fri, 17 Feb 2023 14:07:09 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4PJLsM5mBwz9ss2 for <61246@debbugs.gnu.org>; Fri, 17 Feb 2023 19:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1676660823; bh=GtzPUjL0c0ujKQ34P2rIxShtfEcv8KzHSCVyewKjaN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N2yhN91QbhjP0Q+4kaf5asNEecFGCT4E5brXdDVUduS6YKUYz/rfBe3+3PgMhklJ9 9AESi9GVooxhXcBOU1oQ9f7QxbpLlByJnVaoA4RX26y37PKh8DfOFJBhrR2+hm0nRR nbD7OMYtdYuUnRxSB53ljponoW+kIn5umVEEveCE= X-Riseup-User-ID: 8DED8412A1FBF60F30DDB46A19276CAC81C57F1F21AA66BEF90C3FF8AC527717 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4PJLsL4f3Yz5vg5; Fri, 17 Feb 2023 19:07:02 +0000 (UTC) From: =?UTF-8?Q?Andr=C3=A9?= Batista Date: Fri, 17 Feb 2023 16:06:40 -0300 Message-Id: <20230217190640.1914-1-nandre@riseup.net> In-Reply-To: <87a61ogomz.fsf@gmail.com> References: <87a61ogomz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: X-Migadu-Queue-Id: 43D0A3AC14 X-Spam-Score: -1.83 X-Migadu-Spam-Score: -1.83 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: UpGz04xbacm5 * doc/guix.texi (Using a Custom Guix Channel): Add note and example on how to exempt a local guix repository from git ownership checks. --- doc/guix.texi | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/guix.texi b/doc/guix.texi index 44e2165a82..ae975287c7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -81,7 +81,7 @@ Copyright @copyright{} 2020, 2021 Brice Waegeneire@* Copyright @copyright{} 2020 R Veera Kumar@* Copyright @copyright{} 2020, 2021, 2022 Pierre Langlois@* Copyright @copyright{} 2020 pinoaffe@* -Copyright @copyright{} 2020 André Batista@* +Copyright @copyright{} 2020, 2023 André Batista@* Copyright @copyright{} 2020, 2021 Alexandru-Sergiu Marton@* Copyright @copyright{} 2020 raingloom@* Copyright @copyright{} 2020 Daniel Brooks@* @@ -5413,6 +5413,25 @@ From there on, @command{guix pull} will fetch code from the @code{super-hacks} branch of the repository at @code{example.org}. The authentication concern is addressed below (@pxref{Channel Authentication}). +Note that you can specify a local directory on the @code{url} field above if +the channel that you intend to use resides on a local file system. However, +in this case @command{guix} checks said directory for ownership before any +further processing. This means that if the user is not the directory owner, +but wants to use it as their default, they will then need to set it as a safe +directory in their global git configuration file. Otherwise, @command{guix} +will refuse to even read it. Supposing your system-wide local directory is at +@code{/src/guix.git}, you would then create a git configuration file at +@code{~/.gitconfig} with the following contents: + +@example +[safe] + directory = /src/guix.git +@end example + +@noindent +This also applies to the root user unless when called with @command{sudo} by +the directory owner. + @node Replicating Guix @section Replicating Guix -- 2.39.1