Skip to content

Commit

Permalink
Optimize Makefile and make.bat scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
zishang520 committed May 23, 2023
1 parent 8cf8631 commit b968ec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: default deps fmt clean test
export GOPATH:=$(shell pwd)/vendor
# export GOPATH:=$(shell pwd)/vendor
# Set the GOPROXY environment variable
export GOPROXY=https://goproxy.io,direct
# export http_proxy=socks5://127.0.0.1:1080
Expand All @@ -8,8 +8,8 @@ export GOPROXY=https://goproxy.io,direct
default:

deps:
go mod tidy -v
# go mod vendor -v
go mod tidy
go mod vendor

fmt:
go fmt -mod=mod ./...
Expand Down
6 changes: 3 additions & 3 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set "args=%*"
pushd "%~dp0"
setlocal ENABLEDELAYEDEXPANSION
set GOPATH="%~dp0vendor"
rem set GOPATH="%~dp0vendor"
rem Set the GOPROXY environment variable
Set GOPROXY=https://goproxy.io,direct
rem set http_proxy=socks5://127.0.0.1:1080
Expand All @@ -21,8 +21,8 @@ goto default
GOTO :EOF

:deps
CALL go mod tidy -v
rem CALL go mod vendor -v
CALL go mod tidy
CALL go mod vendor
GOTO :EOF

:fmt
Expand Down

0 comments on commit b968ec9

Please sign in to comment.