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

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

[nongnu] elpa/go-mode 0ecc391 086/495: document issue with go build -o /


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 0ecc391 086/495: document issue with go build -o /dev/null
Date: Sat, 7 Aug 2021 09:04:49 -0400 (EDT)

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

    document issue with go build -o /dev/null
---
 go-mode.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/go-mode.el b/go-mode.el
index 417a82d..1dbac06 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -659,6 +659,12 @@ uncommented, otherwise a new import will be added."
   (let (cmd)
     (if (string-match "_test\.go$" buffer-file-truename)
         (setq cmd "go test -c")
+
+      ;; FIXME Technically, -o /dev/null fails in quite some cases (on
+      ;; Windows, when compiling from within GOPATH). Practically,
+      ;; however, it has the same end result: There won't be a
+      ;; compiled binary/archive, and we'll get our import errors when
+      ;; there are any.
       (setq cmd "go build -o /dev/null"))
     (reverse (remove nil
                      (mapcar



reply via email to

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