From f10224da92a15577c68d5a96f44f5921a808ca13 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 12:41:22 +0100 Subject: [PATCH] Print out the plugin version to help debugging --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 181a5ee..4e4d0ab 100644 --- a/main.go +++ b/main.go @@ -2,14 +2,18 @@ package main import ( "fmt" + "io/ioutil" "os" "os/exec" "strings" - "io/ioutil" "github.com/drone/drone-plugin-go/plugin" ) +var ( + buildCommit string +) + type terraform struct { Remote remote `json:"remote"` Plan bool `json:"plan"` @@ -24,6 +28,7 @@ type remote struct { } func main() { + fmt.Printf("Drone Terraform Plugin built from %s\n", buildCommit) workspace := plugin.Workspace{} vargs := terraform{}