Use correct build contraints (must be alphanumeric)

Fixes: https://github.com/golang-migrate/migrate/issues/52
This commit is contained in:
Dale Hui 2018-06-12 16:18:27 +08:00
parent c4e855b58c
commit dfa9fc05cb
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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 ?=

View File

@ -1,4 +1,4 @@
// +build aws-s3
// +build aws_s3
package main

View File

@ -1,4 +1,4 @@
// +build go-bindata
// +build go_bindata
package main

View File

@ -1,4 +1,4 @@
// +build google-cloud-storage
// +build google_cloud_storage
package main