unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#55081] [PATCH v1] Allow Guix root-dir overrides when working via Tramp.
@ 2022-04-23 16:17 Brian Cully
  2022-05-21 19:10 ` [bug#55081] [PATCH v2] " Brian Cully via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Cully @ 2022-04-23 16:17 UTC (permalink / raw)
  To: 55081


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.
---
 .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)))
 

base-commit: 8540c2d86ca535ceb188c838cf1885de6f65c94f
-- 
2.35.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#55081] [PATCH v2] Allow Guix root-dir overrides when working via Tramp.
  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
  2023-03-05 19:06   ` bug#55081: " Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Cully via Guix-patches via @ 2022-05-21 19:10 UTC (permalink / raw)
  To: 55081; +Cc: Brian Cully

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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#55081: [PATCH v2] Allow Guix root-dir overrides when working via Tramp.
  2022-05-21 19:10 ` [bug#55081] [PATCH v2] " Brian Cully via Guix-patches via
@ 2023-03-05 19:06   ` Leo Famulari
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2023-03-05 19:06 UTC (permalink / raw)
  To: Brian Cully via Guix-patches via; +Cc: 55081-done, Brian Cully

On Sat, May 21, 2022 at 03:10:24PM -0400, Brian Cully via Guix-patches via wrote:
> 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.

Okay, pushed as cedf97ed6ee4eba8c39bfe6cc0efe33fcb977ccf

Thanks!




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-05 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [bug#55081] [PATCH v2] " Brian Cully via Guix-patches via
2023-03-05 19:06   ` bug#55081: " Leo Famulari

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).