Instead of built call vet for go mode

This commit is contained in:
Marcus Kammer 2022-04-23 10:07:16 +02:00
parent 4ffa85e429
commit 24dad03eeb
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -123,7 +123,7 @@
(unless (or (file-exists-p "makefile") (unless (or (file-exists-p "makefile")
(file-exists-p "Makefile")) (file-exists-p "Makefile"))
(set (make-local-variable 'compile-command) (set (make-local-variable 'compile-command)
(concat "go " "build " buffer-file-name)))) (concat "go " "vet " buffer-file-name))))
(add-hook 'go-mode-hook 'me/go-mode-compile-command-hook) (add-hook 'go-mode-hook 'me/go-mode-compile-command-hook)