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

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

[nongnu] elpa/go-mode 0b1ec30 255/495: go-unused-imports-lines pass -e t


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 0b1ec30 255/495: go-unused-imports-lines pass -e to compiler to get all errors
Date: Sat, 7 Aug 2021 09:05:26 -0400 (EDT)

branch: elpa/go-mode
commit 0b1ec3091715f7921bcc1da6fd8a2ded1eb3e51e
Author: Dominik Honnef <dominik@honnef.co>
Commit: Dominik Honnef <dominik@honnef.co>

    go-unused-imports-lines pass -e to compiler to get all errors
---
 go-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 0c430f1..5332e4d 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1324,7 +1324,8 @@ If IGNORE-CASE is non-nil, the comparison is 
case-insensitive."
                                    (concat go-command
                                            (if (string-match "_test\\.go$" 
buffer-file-truename)
                                                " test -c"
-                                             " build -o /dev/null"))) "\n")))))
+                                             " build -o /dev/null")
+                                           " -gcflags=-e")) "\n")))))
 
 (defun go-remove-unused-imports (arg)
   "Remove all unused imports.



reply via email to

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