mirror of https://github.com/status-im/migrate.git
Use correct build contraints (must be alphanumeric)
Fixes: https://github.com/golang-migrate/migrate/issues/52
This commit is contained in:
parent
c4e855b58c
commit
dfa9fc05cb
|
@ -16,7 +16,7 @@ COPY database ./database
|
|||
COPY source ./source
|
||||
|
||||
ENV DATABASES="postgres mysql redshift cassandra spanner cockroachdb clickhouse"
|
||||
ENV SOURCES="file go-bindata github aws-s3 google-cloud-storage"
|
||||
ENV SOURCES="file go_bindata github aws_s3 google_cloud_storage"
|
||||
|
||||
RUN go build -a -o build/migrate.linux-386 -ldflags="-X main.Version=${VERSION}" -tags "$DATABASES $SOURCES" ./cli
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
SOURCE ?= file go-bindata github aws-s3 google-cloud-storage
|
||||
SOURCE ?= file go_bindata github aws_s3 google_cloud_storage
|
||||
DATABASE ?= postgres mysql redshift cassandra spanner cockroachdb clickhouse
|
||||
VERSION ?= $(shell git describe --tags 2>/dev/null | cut -c 2-)
|
||||
TEST_FLAGS ?=
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build aws-s3
|
||||
// +build aws_s3
|
||||
|
||||
package main
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build go-bindata
|
||||
// +build go_bindata
|
||||
|
||||
package main
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build google-cloud-storage
|
||||
// +build google_cloud_storage
|
||||
|
||||
package main
|
||||
|
||||
|
|
Loading…
Reference in New Issue