Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tfenv use] latest-allowed should work on exact constraints #394

Open
Sickafant opened this issue Apr 28, 2023 · 1 comment
Open

[tfenv use] latest-allowed should work on exact constraints #394

Sickafant opened this issue Apr 28, 2023 · 1 comment

Comments

@Sickafant
Copy link

Sickafant commented Apr 28, 2023

There should be parity in behaviour for exact version values when it comes to the version used and picked up in the terraform block when using min-required and latest-allowed.

Problem:

➜  dummy cat versions.tf
terraform {
  required_version = "1.3.9"
}

➜  dummy tfenv use min-required
Switching default version to v1.3.9
Default version (when not overridden by .terraform-version or TFENV_TERRAFORM_VERSION) is now: 1.3.9

➜  dummy tfenv use latest-allowed
Unsupported version spec: '1.3.9', only >, >=, <=, and ~> are supported.
Failure to resolve version from latest-allowed

Expected:

➜  dummy cat versions.tf
terraform {
  required_version = "1.3.9"
}

➜  dummy tfenv use min-required
Switching default version to v1.3.9
Default version (when not overridden by .terraform-version or TFENV_TERRAFORM_VERSION) is now: 1.3.9

➜  dummy tfenv use latest-allowed
Switching default version to v1.3.9
Default version (when not overridden by .terraform-version or TFENV_TERRAFORM_VERSION) is now: 1.3.9

@jmnavarrol
Copy link

This seems a duplicate (or maybe a subset) of #367.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants