From 0e34d97ebf9d27ac3a42524bd53ef1c982e85f49 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Fri, 9 Nov 2018 15:13:45 -0800 Subject: [PATCH] Add new version.go file + linker flags to test runs. (#114) Mirror https://github.com/terraform-providers/terraform-provider-google/pull/2438 --- GNUmakefile | 2 +- version/version.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 version/version.go diff --git a/GNUmakefile b/GNUmakefile index 32e443b0187..98e9d43c18e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,7 +14,7 @@ test: fmtcheck xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 testacc: fmtcheck - TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test $(TEST) -v $(TESTARGS) -timeout 120m + TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -ldflags="-X=github.com/terraform-providers/terraform-provider-google-beta/version.ProviderVersion=acc" vet: @echo "go vet ." diff --git a/version/version.go b/version/version.go new file mode 100644 index 00000000000..b2d946a5d20 --- /dev/null +++ b/version/version.go @@ -0,0 +1,6 @@ +package version + +var ( + // ProviderVersion is set during the release process to the release version of the binary + ProviderVersion = "dev" +)