Add httpfs DB migrations and generate the input (#35)
This commit is contained in:
1 parent
bd5ddea6e4
commit
7f2aa5ca8f
21 files changed
+576
-139
No files matched your search
@@ -5,16 +5,19 @@ THIS_FILE := $(lastword $(MAKEFILE_LIST))
|
||||
TMP_DIR := $(shell mktemp -d)
|
||||
REPO_PATH := github.com/hashicorp/watchtower
|
||||
|
||||
export APIGEN_BASEPATH := $(shell pwd)
|
||||
export GEN_BASEPATH := $(shell pwd)
|
||||
|
||||
bootstrap:
|
||||
go generate -tags tools tools/tools.go
|
||||
|
||||
gen: proto api
|
||||
gen: proto api migrations
|
||||
|
||||
api:
|
||||
$(MAKE) --environment-overrides -C api/internal/genapi api
|
||||
|
||||
migrations:
|
||||
$(MAKE) --environment-overrides -C internal/db/migrations/genmigrations migrations
|
||||
|
||||
### oplog requires protoc-gen-go v1.20.0 or later
|
||||
# GO111MODULE=on go get -u github.com/golang/protobuf/protoc-gen-go@v1.40
|
||||
proto: protolint protobuild cleanup
|
||||
@@ -49,6 +52,6 @@ cleanup:
|
||||
@rm -R ${TMP_DIR}
|
||||
|
||||
|
||||
.PHONY: api bootstrap cleanup gen proto
|
||||
.PHONY: api bootstrap cleanup gen migrations proto
|
||||
|
||||
.NOTPARALLEL:
|
||||
Reference in new issue
Block a user