File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,22 @@ ifeq ($(OS),Windows_NT)
1313PATHSEP=;
1414FOLDERSEP=\\
1515EXTENSION=.exe
16+ # case gopath is empty used the default one
17+ ifeq ($(GOPATH),)
18+ GOPATH=$(USERPROFILE)\go
19+ endif
1620else
1721PATHSEP=:
1822FOLDERSEP=/
1923EXTENSION=""
24+ # case gopath is empty used the default one
25+ ifeq ($(GOPATH),)
26+ GOPATH=$(HOME)/go
27+ endif
2028endif
2129
22- # go env vars
2330GO =$(firstword $(subst $(PATHSEP ) , ,$(GOPATH ) ) )
31+
2432# list of pkgs for the project without vendor
2533PKGS =$(shell go list ./... | grep -v /vendor/)
2634DOCKER_IP =$(shell if [ -z "$(DOCKER_MACHINE_NAME ) " ]; then echo 'localhost'; else docker-machine ip $(DOCKER_MACHINE_NAME ) ; fi)
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ func main() {
7878Usage : "Set the database migration folder path" ,
7979Destination : & migrationPath ,
8080},
81-
8281cli.StringFlag {
8382Value : logLevel ,
8483Name : "logl, l" ,
You can’t perform that action at this time.
0 commit comments