mirror of
https://github.com/opentofu/opentofu.git
synced 2026-05-20 17:20:09 -04:00
The revision field is only populated on dev builds so this means most releases of Terraform have an empty "terraform_revision" field in the JSON output. Since we recommend developers use go tooling to `go build` this tool when developing, the revision is not useful data and so it is removed.
9 lines
142 B
Go
9 lines
142 B
Go
package main
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/version"
|
|
)
|
|
|
|
var Version = version.Version
|
|
|
|
var VersionPrerelease = version.Prerelease
|