tfinstall

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package tfinstall locates or installs a terraform/tofu binary. It is shared by src/ (the scan path) and parse/ (the schema extraction path) so that the binary-search and hc-install fallback live in exactly one place.

Index

Constants

View Source
const Version = "1.5.4"

Version is the Terraform version fetched via hc-install when no binary is found on PATH. Kept as a single constant here so both callers stay in sync.

Variables

This section is empty.

Functions

func LocateTerraform

func LocateTerraform() (string, error)

LocateTerraform returns the path to a tofu or terraform binary, preferring tofu. If neither is on PATH it installs Terraform Version via hc-install.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL