From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MK+cFSQN8GMqFgEAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 00:26:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sCKpFSQN8GMeegEA9RJhRA (envelope-from ) for ; Sat, 18 Feb 2023 00:26:28 +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 1A9A71F0A3 for ; Sat, 18 Feb 2023 00:26:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=b6IBd0v7; 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=1676676388; a=rsa-sha256; cv=none; b=a0YdOmp2xNjGqCWOOpyKpH3XbtLJ3eCQmMvIcOoPkZnhXWeFWYqOsrAY4dZMhNY8lxWoSe bnzO7SjM5tot0e7rzgGKs6FPMgwKTcbg7lcjWrWPWY8rQQC4SI9VNg4RlL6P/aO1PFkto/ H0BHmIrx2r6o3CHG4vA5+Lh7IwfunclJgx5SD6qt8aJC8FB8Yhbvm2fEPAzLM4UHnUlBwL NiO1XLV/Y2vYz0UU7ziKJJRdzSKk1xZi3D3uGckGIeAaHUY2S1IRO4YlfXGo7cY4MIKteZ UC2CmEN9RmAtA1q+F9OEjPFXGKiYYLeu59t1/pJRjhXvBjgUkDbHmgxftcyFVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=b6IBd0v7; 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=1676676388; 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=21A8RT0Fxld01zwHWLh7mdmTmm9tSI3pFkiapHx9GKw=; b=Fk4HDcNwBiZzgOdEUYX1ii+hFWxZjEirJXm4gYL679Z8NlHJ5o/9hQ/peaAkjAwWjNdXd0 l/vHngKPc9HpByCc1Dma/Q4J97MRF9iQwoj6oR3KSG1WOKvkFrqbsf3MS6iwphiG6zBzKJ MeU/Y3fUsjGQHJQKB8+MQSA/YEWMDOpchJPS8lREHXgukn85apfgz+O3IaLzdGTIWXrWQe 4WYWJEPDKcemvXeJHVveidqSpi87qnEjsh3djnNae1TlYsyzDnesd1fuNoyRVln4zdR5Wc 6O2gXNaVwVW8JkZ84Fx31tdn92pE+qkkZOaTFRYrEYx5LkjGrBtcjZQaYYNTLQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTA7A-0007bY-JH; Fri, 17 Feb 2023 18:26: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 1pTA78-0007bL-Mw for guix-patches@gnu.org; Fri, 17 Feb 2023 18:26: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 1pTA78-0001ly-E5 for guix-patches@gnu.org; Fri, 17 Feb 2023 18:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTA77-0005wP-Q0 for guix-patches@gnu.org; Fri, 17 Feb 2023 18:26:01 -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 23:26:01 +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: Maxim Cournoyer Cc: 61246@debbugs.gnu.org Received: via spool by 61246-submit@debbugs.gnu.org id=B61246.167667630322755 (code B ref 61246); Fri, 17 Feb 2023 23:26:01 +0000 Received: (at 61246) by debbugs.gnu.org; 17 Feb 2023 23:25:03 +0000 Received: from localhost ([127.0.0.1]:41854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTA6B-0005uv-0v for submit@debbugs.gnu.org; Fri, 17 Feb 2023 18:25:03 -0500 Received: from mx1.riseup.net ([198.252.153.129]:34784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTA68-0005uK-9E for 61246@debbugs.gnu.org; Fri, 17 Feb 2023 18:25:01 -0500 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (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 mx1.riseup.net (Postfix) with ESMTPS id 4PJSZt4N2jzDqp7; Fri, 17 Feb 2023 23:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1676676294; bh=UzNuLykpHKLqhN6zKkGbntMzcBycDqsYUYy627/gF98=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b6IBd0v7IprftDO6g41EtOGCFtceP6OXcShctv7qtI4eDL9OA0TwxSwDXdxfcRrSS zScZqFMM3e0mMbAeoI23Go7SHZKoi8CWiEJ01qjoL6+0O6onPt6P/p4UO5U2cLRDet eLa28wIxGl4Z3jpEM97sq1jp1+MJZnq5uhu0vNOs= X-Riseup-User-ID: 0849C1BBAF95577574D7E8388A0476F86E8EF63F77783FF0043B2EFF4F961FB7 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4PJSZs4KGXz1yBT; Fri, 17 Feb 2023 23:24:53 +0000 (UTC) Date: Fri, 17 Feb 2023 20:24:45 -0300 From: =?UTF-8?Q?Andr=C3=A9?= Batista Message-ID: References: <87a61ogomz.fsf@gmail.com> <20230217190640.1914-1-nandre@riseup.net> <87r0uoqd2j.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87r0uoqd2j.fsf@gmail.com> 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: 1A9A71F0A3 X-Spam-Score: -0.13 X-Migadu-Spam-Score: -0.13 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: JQhhdzNmpiQP Hi, sex 17 fev 2023 às 14:58:12 (1676656692), maxim.cournoyer@gmail.com enviou: > Hello, > > André Batista writes: > > +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 > > Perhaps you meant to use @command{git} in the above instead of > @command{guix}, since it's specific to Git (and the configure snippet is > for Git) ? Not really. It's guix itself and its subcommands which will fail in this scenario, not git, even though it's because guix is using git configuration through libgit2. To me it would be misleading to use @command{git} there. I could come up with a more detailed description, however, I don't think this would be the place to be diving on a detailed discussion of guix internals. I'm up to suggestions though if you think this patch would make people wonder if it is a typo. WDYT?