diff options
Diffstat (limited to 'installer')
-rw-r--r-- | installer/go_install.cmd | 5 | ||||
-rw-r--r-- | installer/install-golangci-lint-langserver.cmd | 4 | ||||
-rw-r--r-- | installer/install-golangci-lint-langserver.sh | 6 |
3 files changed, 14 insertions, 1 deletions
diff --git a/installer/go_install.cmd b/installer/go_install.cmd index 642b6a9..fa4c0f0 100644 --- a/installer/go_install.cmd +++ b/installer/go_install.cmd @@ -2,9 +2,12 @@ if "x%1" equ "x" goto :EOF
+setlocal
+
+set GO111MODULE=on
set GOPATH=%cd%
set GOBIN=%cd%
go get -v -u %1
set GOBIN=
go clean -modcache
-rd /S /Q "src" "pkg" 2> NULL
+rd /S /Q "src" "pkg" 2> NUL
diff --git a/installer/install-golangci-lint-langserver.cmd b/installer/install-golangci-lint-langserver.cmd new file mode 100644 index 0000000..b64ef38 --- /dev/null +++ b/installer/install-golangci-lint-langserver.cmd @@ -0,0 +1,4 @@ +@echo off
+
+call "%~dp0\go_install.cmd" github.com/nametake/golangci-lint-langserver@latest
+call "%~dp0\go_install.cmd" github.com/golangci/golangci-lint@latest
diff --git a/installer/install-golangci-lint-langserver.sh b/installer/install-golangci-lint-langserver.sh new file mode 100644 index 0000000..92c8c3a --- /dev/null +++ b/installer/install-golangci-lint-langserver.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +"$(dirname "$0")/go_install.sh" github.com/nametake/golangci-lint-langserver@latest +"$(dirname "$0")/go_install.sh" github.com/golangci/golangci-lint@latest |