diff --git a/google/config.go b/google/config.go index 78935c9fd78..8a16d5f5fd4 100644 --- a/google/config.go +++ b/google/config.go @@ -6,12 +6,11 @@ import ( "fmt" "log" "net/http" - "runtime" "strings" "github.com/hashicorp/terraform/helper/logging" "github.com/hashicorp/terraform/helper/pathorcontents" - "github.com/hashicorp/terraform/terraform" + "github.com/hashicorp/terraform/version" "golang.org/x/oauth2" "golang.org/x/oauth2/google" @@ -137,9 +136,9 @@ func (c *Config) loadAndValidate() error { client.Transport = logging.NewTransport("Google", client.Transport) - versionString := terraform.VersionString() - userAgent := fmt.Sprintf( - "(%s %s) Terraform/%s", runtime.GOOS, runtime.GOARCH, versionString) + projectURL := "https://www.terraform.io" + userAgent := fmt.Sprintf("Terraform/%s (+%s)", + version.String(), projectURL) c.client = client c.userAgent = userAgent