Go modules (#22)
* Move to go modules * Move go.mod in root directory * Update Readme * Remove golang.org/x/tools from go.mod * Remove go list from targets * Set go version to 1.12 * Update Makefile Co-Authored-By: hanzei <16541325+hanzei@users.noreply.github.com> * Update dependencies * Fix build
This commit is contained in:
parent
05dd2de750
commit
fe3553d999
327 changed files with 208 additions and 58246 deletions
|
@ -28,21 +28,6 @@ HAS_WEBAPP ?= $(shell build/bin/manifest has_webapp)
|
|||
# Determine if a /public folder is in use
|
||||
HAS_PUBLIC ?= $(wildcard public/.)
|
||||
|
||||
# Try looking for dep in $(GOPATH) in case $(GOPATH)/bin isn't in $(PATH).
|
||||
GOPATH ?= $(shell $(GO) env GOPATH)
|
||||
ifeq ($(DEP),)
|
||||
ifneq ($(wildcard $(GOPATH)/bin/dep),)
|
||||
DEP = $(GOPATH)/bin/dep
|
||||
endif
|
||||
endif
|
||||
|
||||
# Ensure that dep is installed.
|
||||
ifneq ($(HAS_SERVER),)
|
||||
ifeq ($(DEP),)
|
||||
$(error "dep is not available: see https://golang.github.io/dep/docs/installation.html")
|
||||
endif
|
||||
endif
|
||||
|
||||
# Ensure that npm (and thus node) is installed.
|
||||
ifneq ($(HAS_WEBAPP),)
|
||||
ifeq ($(NPM),)
|
||||
|
|
Reference in a new issue