Skip to content

Commit

Permalink
tfinstall: Remove version check (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo authored Dec 23, 2024
1 parent 2dcb4e9 commit b32ae38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/meta/tfinstall_find.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package meta
import (
"context"

"github.com/hashicorp/go-version"
install "github.com/hashicorp/hc-install"
"github.com/hashicorp/hc-install/fs"
"github.com/hashicorp/hc-install/product"
Expand All @@ -14,9 +13,8 @@ import (
func FindTerraform(ctx context.Context) (string, error) {
i := install.NewInstaller()
return i.Ensure(ctx, []src.Source{
&fs.Version{
Product: product.Terraform,
Constraints: version.MustConstraints(version.NewConstraint(">=0.12")),
&fs.AnyVersion{
Product: &product.Terraform,
},
})
}

0 comments on commit b32ae38

Please sign in to comment.