84c9110a24
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.24.1 to 2.26.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.24.1...v2.26.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
21 lines
502 B
Go
21 lines
502 B
Go
package version
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/hashicorp/go-version"
|
|
)
|
|
|
|
//go:embed VERSION
|
|
var rawVersion string
|
|
|
|
// Version returns the version of the library
|
|
//
|
|
// Note: This is only exposed as public function/package
|
|
// due to hard-coded constraints in the release tooling.
|
|
// In general downstream should not implement version-specific
|
|
// logic and rely on this function to be present in future releases.
|
|
func Version() *version.Version {
|
|
return version.Must(version.NewVersion(rawVersion))
|
|
}
|