mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/go: remove bootstrap
This commit is contained in:
@ -8,28 +8,3 @@
|
|||||||
|
|
||||||
(when (featurep! :completion company)
|
(when (featurep! :completion company)
|
||||||
(package! company-go))
|
(package! company-go))
|
||||||
|
|
||||||
;;
|
|
||||||
(def-bootstrap! go
|
|
||||||
(let ((gobin (executable-find "go"))
|
|
||||||
(gopath (getenv "GOPATH"))
|
|
||||||
changed)
|
|
||||||
(unless gobin
|
|
||||||
(pcase (doom-system-os)
|
|
||||||
('arch
|
|
||||||
(sudo "pacman --noconfirm -S go"))
|
|
||||||
('debian) ;; TODO
|
|
||||||
('macos
|
|
||||||
(sh "brew install go")))
|
|
||||||
(unless (executable-find "go")
|
|
||||||
(error "Go isn't installed (%s)" gobin)))
|
|
||||||
(unless (file-directory-p gopath)
|
|
||||||
(error "GOPATH isn't set up (%s)" gopath))
|
|
||||||
(mapc (lambda (url)
|
|
||||||
(unless (file-directory-p (expand-file-name (concat "src/" url) gopath))
|
|
||||||
(sh "%s get -u '%s'" gobin url)
|
|
||||||
(setq changed t)))
|
|
||||||
'("github.com/nsf/gocode"
|
|
||||||
"github.com/motemen/gore"
|
|
||||||
"golang.org/x/tools/cmd/guru"
|
|
||||||
"golang.org/x/tools/cmd/gorename"))))
|
|
||||||
|
Reference in New Issue
Block a user