Skip to content

Commit

Permalink
🐛 report error if GOPATH env is missing
Browse files Browse the repository at this point in the history
fixes #531 #359
  • Loading branch information
droot committed Dec 20, 2018
1 parent 63bd360 commit 047d8f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/scaffold/project/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ vet:
# Generate code
generate:
ifndef GOPATH
$(error GOPATH not defined, please define GOPATH. Run "go help gopath" to learn more about GOPATH)
endif
go generate ./pkg/... ./cmd/...
# Build the docker image
Expand Down
3 changes: 3 additions & 0 deletions test/project/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ vet:

# Generate code
generate:
ifndef GOPATH
$(error GOPATH not defined, please define GOPATH. Run "go help gopath" to learn more about GOPATH)
endif
go generate ./pkg/... ./cmd/...

# Build the docker image
Expand Down

0 comments on commit 047d8f4

Please sign in to comment.