unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Brian Cully via Guix-patches via <guix-patches@gnu.org>
To: 55081@debbugs.gnu.org
Cc: Brian Cully <bjc@kublai.com>
Subject: [bug#55081] [PATCH v2] Allow Guix root-dir overrides when working via Tramp.
Date: Sat, 21 May 2022 15:10:24 -0400	[thread overview]
Message-ID: <5eb3a6b7718bb1f3959afd27f051f744c9d677f6.1653160223.git.bjc@spork.org> (raw)
In-Reply-To: <87fsm3kc2m.fsf@ditto.jhoto.spork.org>

From: Brian Cully <bjc@kublai.com>

Add only the local part of the root directory to the guile search
path. This lets you use Tramp to hack on a remote Guix checkout.
---
I think my last patch was mangled by GNUS, so I'm resending it.

FWIW, I've been using this for months without issue.
 .dir-locals.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.dir-locals.el b/.dir-locals.el
index 09e19223d5..3b75989133 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -29,7 +29,7 @@
                ;; Hence the following "when", which might otherwise be unnecessary;
                ;; it prevents causing an error when root-dir-unexpanded is nil.
                (when root-dir-unexpanded
-                 (let* ((root-dir (expand-file-name root-dir-unexpanded))
+                 (let* ((root-dir (file-local-name (expand-file-name root-dir-unexpanded)))
                         ;; Workaround for bug https://issues.guix.gnu.org/43818.
                         (root-dir* (directory-file-name root-dir)))
 
-- 
2.36.1





  reply	other threads:[~2022-05-21 19:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-23 16:17 [bug#55081] [PATCH v1] Allow Guix root-dir overrides when working via Tramp Brian Cully
2022-05-21 19:10 ` Brian Cully via Guix-patches via [this message]
2023-03-05 19:06   ` bug#55081: [PATCH v2] " Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5eb3a6b7718bb1f3959afd27f051f744c9d677f6.1653160223.git.bjc@spork.org \
    --to=guix-patches@gnu.org \
    --cc=55081@debbugs.gnu.org \
    --cc=bjc@kublai.com \
    --cc=bjc@spork.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).