emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 541e559 212/495: when parsing GOPATH, split on the


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 541e559 212/495: when parsing GOPATH, split on the platform-specific path separator
Date: Sat, 7 Aug 2021 09:05:15 -0400 (EDT)

branch: elpa/go-mode
commit 541e559bc17fbad15441aa0226418a66f5cc8734
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    when parsing GOPATH, split on the platform-specific path separator
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 34a85cd..0cf2855 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -949,7 +949,7 @@ uncommented, otherwise a new import will be added."
   (let* ((output (split-string (shell-command-to-string (concat go-command " 
env GOROOT GOPATH"))
                                "\n"))
          (root (car output))
-         (paths (split-string (cadr output) ":")))
+         (paths (split-string (cadr output) path-separator)))
     (append (list root) paths)))
 
 (defun go--string-prefix-p (s1 s2 &optional ignore-case)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]