refactor: switch to go mod

This hopefully makes it a little easier to work with as the tooling is now based on something in golang core.

- move columnize usage to common plugin
- remove old vendor files
This commit is contained in:
Jose Diaz-Gonzalez
2020-06-27 22:41:57 -04:00
parent 1eaa98d3e6
commit 45e3623ffd
194 changed files with 487 additions and 13341 deletions

View File

@@ -1,6 +1,6 @@
GO_ARGS ?= -a
GO_REPO_ROOT := /go/src/github.com/dokku/dokku
BUILD_IMAGE := golang:1.12
BUILD_IMAGE := golang:1.14.4
.PHONY: build-in-docker build clean src-clean
@@ -12,6 +12,7 @@ build-in-docker: clean
-v $$PWD/../..:$(GO_REPO_ROOT) \
-v /tmp/dokku-go-build-cache:/root/.cache \
-e PLUGIN_NAME=$(PLUGIN_NAME) \
-e GO111MODULE=on \
-w $(GO_REPO_ROOT)/plugins/$(PLUGIN_NAME) \
$(BUILD_IMAGE) \
bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$?