aboutsummaryrefslogtreecommitdiff
path: root/installer/install-gopls.cmd
blob: 8289713aa9d749be0c18dac71f701afce1554725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\gopls
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

set GOPATH=%cd%
set GOBIN=%cd%
go get -v -u golang.org/x/tools/cmd/gopls
rd /S /Q "src"