Switch to go modules

This commit is contained in:
2019-01-01 00:22:43 +00:00
parent 8bb4f68fa6
commit ae1d56d26a
67 changed files with 22 additions and 11795 deletions

View File

@@ -7,7 +7,7 @@ VERSION ?= $(shell cat VERSION)
SOURCES = $(shell find . -name '*.go' -o -name 'Makefile' -o -name 'VERSION')
all: bootstrap generate build
bootstrap: dev-deps dep-ensure
bootstrap: dev-deps
$(BINARY): $(SOURCES)
CGO_ENABLED=0 go build -a -o ${BINARY} -ldflags \ "\
@@ -30,16 +30,12 @@ test:
go test ./...
.PHONY: generate
generate: dev-deps
generate:
go generate ./...
%_easyjson.go: %.go
easyjson -all $^
.PHONY: dep-ensure
dep-ensure:
dep ensure
.PHONY: dev-deps
dev-deps:
@$(foreach DEP,$(DEV_DEPS),go get $(DEP);)