forked from IBM-Cloud/terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose Terraform version internally & externally
- Loading branch information
1 parent
7850bb3
commit 0fc8882
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package terraform | ||
|
||
// The main version number that is being run at the moment. | ||
const Version = "0.6.0" | ||
|
||
// A pre-release marker for the version. If this is "" (empty string) | ||
// then it means that it is a final release. Otherwise, this is a pre-release | ||
// such as "dev" (in development), "beta", "rc1", etc. | ||
const VersionPrerelease = "dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
package main | ||
|
||
import "github.com/hashicorp/terraform/terraform" | ||
|
||
// The git commit that was compiled. This will be filled in by the compiler. | ||
var GitCommit string | ||
|
||
// The main version number that is being run at the moment. | ||
const Version = "0.6.0" | ||
|
||
// A pre-release marker for the version. If this is "" (empty string) | ||
// then it means that it is a final release. Otherwise, this is a pre-release | ||
// such as "dev" (in development), "beta", "rc1", etc. | ||
const VersionPrerelease = "dev" | ||
const Version = terraform.Version | ||
const VersionPrerelease = terraform.VersionPrerelease |