From d4d20346f2585872dc56edf86430181328f2dca0 Mon Sep 17 00:00:00 2001 From: Matthias Kadenbach Date: Wed, 17 May 2017 19:10:45 -0700 Subject: [PATCH 1/5] build cli with all source and database drivers --- Makefile | 4 ++-- cli/build_aws-s3.go | 7 +++++++ cli/build_google-cloud-storage.go | 7 +++++++ cli/build_ql.go | 7 +++++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 cli/build_aws-s3.go create mode 100644 cli/build_google-cloud-storage.go create mode 100644 cli/build_ql.go diff --git a/Makefile b/Makefile index cbe7657d..227173b9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -SOURCE ?= file go-bindata github -DATABASE ?= postgres mysql +SOURCE ?= file go-bindata github aws-s3 google-cloud-storage +DATABASE ?= postgres mysql ql redshift VERSION ?= $(shell git describe --tags 2>/dev/null | cut -c 2-) TEST_FLAGS ?= REPO_OWNER ?= $(shell cd .. && basename "$$(pwd)") diff --git a/cli/build_aws-s3.go b/cli/build_aws-s3.go new file mode 100644 index 00000000..766fd566 --- /dev/null +++ b/cli/build_aws-s3.go @@ -0,0 +1,7 @@ +// +build aws-s3 + +package main + +import ( + _ "github.com/mattes/migrate/source/aws-s3" +) diff --git a/cli/build_google-cloud-storage.go b/cli/build_google-cloud-storage.go new file mode 100644 index 00000000..04f31433 --- /dev/null +++ b/cli/build_google-cloud-storage.go @@ -0,0 +1,7 @@ +// +build google-cloud-storage + +package main + +import ( + _ "github.com/mattes/migrate/source/google-cloud-storage" +) diff --git a/cli/build_ql.go b/cli/build_ql.go new file mode 100644 index 00000000..cd56ef95 --- /dev/null +++ b/cli/build_ql.go @@ -0,0 +1,7 @@ +// +build ql + +package main + +import ( + _ "github.com/mattes/migrate/database/ql" +) From ff7e06026914f22aaac6d71802b76808765c0457 Mon Sep 17 00:00:00 2001 From: Matthias Kadenbach Date: Wed, 17 May 2017 19:16:08 -0700 Subject: [PATCH 2/5] remove ql --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 227173b9..1aa79742 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ SOURCE ?= file go-bindata github aws-s3 google-cloud-storage -DATABASE ?= postgres mysql ql redshift +DATABASE ?= postgres mysql redshift VERSION ?= $(shell git describe --tags 2>/dev/null | cut -c 2-) TEST_FLAGS ?= REPO_OWNER ?= $(shell cd .. && basename "$$(pwd)") From 801e84d4d22a45b31ea8087531f71447314c0e59 Mon Sep 17 00:00:00 2001 From: Matthias Kadenbach Date: Wed, 17 May 2017 19:21:48 -0700 Subject: [PATCH 3/5] fix make deps --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 1aa79742..3484825a 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,9 @@ deps: -go get -v -u ./... -go test -v -i ./... + # TODO: why is this not being fetched with the command above? + -go get github.com/fsouza/fake-gcs-server/fakestorage + list-external-deps: $(call external_deps,'.') From e696a861ba4857def239ce0f3cfe6a59c4e89a61 Mon Sep 17 00:00:00 2001 From: Matthias Kadenbach Date: Wed, 17 May 2017 19:26:24 -0700 Subject: [PATCH 4/5] fix makefile --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3484825a..3a43aa81 100644 --- a/Makefile +++ b/Makefile @@ -59,9 +59,8 @@ html-coverage: deps: -go get -v -u ./... -go test -v -i ./... - # TODO: why is this not being fetched with the command above? - -go get github.com/fsouza/fake-gcs-server/fakestorage + -go get github.com/fsouza/fake-gcs-server/fakestorage list-external-deps: From 0d9689ab9f96e689c6ba91619203778352e9bf76 Mon Sep 17 00:00:00 2001 From: Matthias Kadenbach Date: Wed, 17 May 2017 19:37:36 -0700 Subject: [PATCH 5/5] go get update --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a43aa81..34e737ef 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ deps: -go get -v -u ./... -go test -v -i ./... # TODO: why is this not being fetched with the command above? - -go get github.com/fsouza/fake-gcs-server/fakestorage + -go get -u github.com/fsouza/fake-gcs-server/fakestorage list-external-deps: