From 18b05d3f91597db400988982958c21acbe97d758 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 3 Mar 2020 00:10:18 +0900 Subject: Cleanup go mod cache --- installer/go_install.cmd | 2 ++ installer/go_install.sh | 1 + 2 files changed, 3 insertions(+) (limited to 'installer') diff --git a/installer/go_install.cmd b/installer/go_install.cmd index 16e1ca8..642b6a9 100644 --- a/installer/go_install.cmd +++ b/installer/go_install.cmd @@ -5,4 +5,6 @@ if "x%1" equ "x" goto :EOF set GOPATH=%cd% set GOBIN=%cd% go get -v -u %1 +set GOBIN= +go clean -modcache rd /S /Q "src" "pkg" 2> NULL diff --git a/installer/go_install.sh b/installer/go_install.sh index be5feff..4f6b6dd 100755 --- a/installer/go_install.sh +++ b/installer/go_install.sh @@ -6,4 +6,5 @@ set -e GOPATH=$(pwd) GOBIN=$(pwd) GO111MODULE=on go get -v "$1" +GOPATH=$(pwd) GO111MODULE=on go clean -modcache rm -rf src pkg 2> /dev/null -- cgit v1.2.3-54-g00ecf