mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #2413 from TimeIncOSS/version-separation
Expose Terraform version
This commit is contained in:
commit
118e021d1b
9
terraform/version.go
Normal file
9
terraform/version.go
Normal file
@ -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"
|
11
version.go
11
version.go
@ -1,12 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
|
import "github.com/hashicorp/terraform/terraform"
|
||||||
|
|
||||||
// The git commit that was compiled. This will be filled in by the compiler.
|
// The git commit that was compiled. This will be filled in by the compiler.
|
||||||
var GitCommit string
|
var GitCommit string
|
||||||
|
|
||||||
// The main version number that is being run at the moment.
|
const Version = terraform.Version
|
||||||
const Version = "0.6.0"
|
const VersionPrerelease = terraform.VersionPrerelease
|
||||||
|
|
||||||
// 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"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user