diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/version')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/version/version.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vendor/github.com/hashicorp/terraform/version/version.go b/vendor/github.com/hashicorp/terraform/version/version.go index b21b297..30d7284 100644 --- a/vendor/github.com/hashicorp/terraform/version/version.go +++ b/vendor/github.com/hashicorp/terraform/version/version.go | |||
@@ -11,17 +11,21 @@ import ( | |||
11 | ) | 11 | ) |
12 | 12 | ||
13 | // The main version number that is being run at the moment. | 13 | // The main version number that is being run at the moment. |
14 | var Version = "0.11.12" | 14 | var Version = "0.12.0" |
15 | 15 | ||
16 | // A pre-release marker for the version. If this is "" (empty string) | 16 | // A pre-release marker for the version. If this is "" (empty string) |
17 | // then it means that it is a final release. Otherwise, this is a pre-release | 17 | // then it means that it is a final release. Otherwise, this is a pre-release |
18 | // such as "dev" (in development), "beta", "rc1", etc. | 18 | // such as "dev" (in development), "beta", "rc1", etc. |
19 | var Prerelease = "dev" | 19 | var Prerelease = "" |
20 | 20 | ||
21 | // SemVer is an instance of version.Version. This has the secondary | 21 | // SemVer is an instance of version.Version. This has the secondary |
22 | // benefit of verifying during tests and init time that our version is a | 22 | // benefit of verifying during tests and init time that our version is a |
23 | // proper semantic version, which should always be the case. | 23 | // proper semantic version, which should always be the case. |
24 | var SemVer = version.Must(version.NewVersion(Version)) | 24 | var SemVer *version.Version |
25 | |||
26 | func init() { | ||
27 | SemVer = version.Must(version.NewVersion(Version)) | ||
28 | } | ||
25 | 29 | ||
26 | // Header is the header name used to send the current terraform version | 30 | // Header is the header name used to send the current terraform version |
27 | // in http requests. | 31 | // in http requests. |