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

Take explicit version given to CLI as highest priority #120

Closed
grimm26 opened this issue Dec 10, 2020 · 3 comments · Fixed by #121
Closed

Take explicit version given to CLI as highest priority #120

grimm26 opened this issue Dec 10, 2020 · 3 comments · Fixed by #121
Assignees
Labels
bug Something isn't working

Comments

@grimm26
Copy link
Contributor

grimm26 commented Dec 10, 2020

If I run tfswitch in a directory with a versions.tf file in it, tfswitch ignores the argument that I give it and only cares about the info in the versions.tf file.

11:07:00 ❯ cat versions.tf
terraform {
  required_version = ">= 0.12"
}

11:11:13 ❯ tfswitch 0.13.5
Reading configuration from home directory for .tfswitch.toml
Reading required version from terraform file, constraint: >= 0.12
Matched version: 0.14.2
Switched terraform to version "0.14.2"

This seems to only be the case when you have a ~/.tfswitch.toml

@warrensbox
Copy link
Owner

Thanks. I will review this soon.

@warrensbox warrensbox self-assigned this Dec 14, 2020
@nlarzon
Copy link

nlarzon commented Jan 5, 2021

Yes, plz!

@warrensbox
Copy link
Owner

@nlarzon @grimm26
I tested and released this - version 0.9.939. Please get the latest version -
https://tfswitch.warrensbox.com/Upgrade-or-Uninstall/
Please help me test it and let me know if it's working correctly.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants