Skip to content

Commit

Permalink
Add new version.go file + linker flags to test runs. (hashicorp#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored and nat-henderson committed Dec 12, 2018
1 parent 9df5769 commit 0e34d97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
Expand Down
6 changes: 6 additions & 0 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package version

var (
// ProviderVersion is set during the release process to the release version of the binary
ProviderVersion = "dev"
)

0 comments on commit 0e34d97

Please sign in to comment.