mirror of https://github.com/databricks/cli.git
Pin Terraform binary version to 1.5.5 (#715)
## Changes
The installer doesn't respect the version constraints if they are
specified.
Source: [the vc argument is not
used](850464c601/releases/latest_version.go (L158-L177)
).
## Tests
Confirmed manually.
This commit is contained in:
parent
707fd6f617
commit
46b999ed42
|
@ -55,10 +55,10 @@ func (m *initialize) findExecPath(ctx context.Context, b *bundle.Bundle, tf *con
|
|||
}
|
||||
|
||||
// Download Terraform to private bin directory.
|
||||
installer := &releases.LatestVersion{
|
||||
Product: product.Terraform,
|
||||
Constraints: version.MustConstraints(version.NewConstraint("<=1.5.5")),
|
||||
InstallDir: binDir,
|
||||
installer := &releases.ExactVersion{
|
||||
Product: product.Terraform,
|
||||
Version: version.Must(version.NewVersion("1.5.5")),
|
||||
InstallDir: binDir,
|
||||
}
|
||||
execPath, err = installer.Install(ctx)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue