[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode 648ad3d 311/495: Use null-device instead of /dev/n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode 648ad3d 311/495: Use null-device instead of /dev/null |
Date: |
Sat, 7 Aug 2021 09:05:38 -0400 (EDT) |
branch: elpa/go-mode
commit 648ad3d46779b3c58e5c6e62d40b4153e430dea2
Author: Dominik Honnef <dominik@honnef.co>
Commit: Dominik Honnef <dominik@honnef.co>
Use null-device instead of /dev/null
Older versions of Go (<1.6) would complain even about /dev/null, so it
made no difference if we used /dev/null or NUL on Windows. Go 1.6,
however, will not complain, so use null-device to work correctly on
Windows.
---
NEWS | 2 ++
go-mode.el | 7 +------
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/NEWS b/NEWS
index 373c145..dffd449 100644
--- a/NEWS
+++ b/NEWS
@@ -62,6 +62,8 @@ go-mode-1.4.0 (???)
* Avoid warnings by the byte compiler -- Use cl-lib instead of cl,
and utilize a macro to conditionally compile fallback code.
+ * Use null-device instead of /dev/null to work better on Windows.
+
go-mode-1.3.1 (2015-07-03)
* The 1.3.0 release forgot to update the version in the package
diff --git a/go-mode.el b/go-mode.el
index 812f37a..6658bed 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1412,11 +1412,6 @@ archive files in /pkg/"
(split-string (buffer-string) "\n" t)))
(defun go-unused-imports-lines ()
- ;; 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.
(reverse (remove nil
(mapcar
(lambda (line)
@@ -1429,7 +1424,7 @@ archive files in /pkg/"
(concat go-command
(if (string-match "_test\\.go$"
buffer-file-truename)
" test -c"
- " build -o /dev/null")
+ (concat " build -o " null-device))
" -gcflags=-e"
" "
(shell-quote-argument
(file-truename buffer-file-name)))) "\n")))))
- [nongnu] elpa/go-mode 7c5e9ad 303/495: Avoid warning because of font-lock-syntactic-keywords, (continued)
- [nongnu] elpa/go-mode 7c5e9ad 303/495: Avoid warning because of font-lock-syntactic-keywords, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode bdf353a 304/495: Use cl-lib instead of cl, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 82ebf74 302/495: Don't make ":", ", " or "=" electric, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode a49cdb8 305/495: Evaluate (featurep 'xemacs) at compile time, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3200a9f 301/495: Support electric-indent-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 53f50f7 299/495: Make godoc command and completion configurable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1a0541c 312/495: Simplify go-packages-go-list by using process-lines, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 404f8ca 308/495: Improve README and NEWS entries for new goto commands, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f12f2cc 319/495: Add support for gogetdoc, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 7fec5b2 317/495: Move test Go files to testdata, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 648ad3d 311/495: Use null-device instead of /dev/null,
ELPA Syncer <=
- [nongnu] elpa/go-mode e035e60 309/495: Mention GOPATH detection in README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 43da263 313/495: Simplify go-root-and-paths by using process-lines, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 95c74ba 324/495: Update URL to gogetdoc tool., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 228ded4 314/495: Use cons instead of append, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 205672f 322/495: Use separate godoc commands for godoc and godoc-at-point, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 737611e 329/495: Update URL to goimports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode b65e408 334/495: go.tools/cmd/oracle: cosmetic tweaks to Emacs., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode e76464a 331/495: go.tools/oracle: an oracle that answers questions about Go source code., ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8560557 354/495: cmd/guru: fix bug in mode map caused by bad merge, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode b36d2fd 352/495: cmd/guru: emacs: report an error when the guru command fails, ELPA Syncer, 2021/08/07