Comments (6)
This a useful feature, especially if a user wants to test out a terraform beta release version.
A couple of developers suggested that we pass a parameter to list all the version (including betas). The default, however, will only show the official release.
For example:-
The default tfswitch
will display:
▸ 0.11.7
0.9.8
0.11.13
0.11.12
↓ 0.11.11
The optional arg tfswitch --list-all
or tfswitch -l
will display all versions including rc and betas:
▸ 0.12.0-rc1
0.12.0-beta2
0.12.0-beta1
0.12.0
0.11.13
↓ 0.11.11
I will merge your changes to master and incorporate my changes to allow optional parameter --list-all
list all tf version.
I will release this new feature on Monday (May 20).
from terraform-switcher.
I will look at the code tonight
from terraform-switcher.
@devorbitus
Would you be able test the changes before I release it?
Steps:
- git checkout develop (your changes are merged to develop)
go build -v -o tfswitch
./tfswitch 0.12.0-rc1
thenterraform -v
to verify./tfswitch -l
or./tfswitch --list-all
- verify if it list all the versions
from terraform-switcher.
@warrensbox Tested it as well as looked over the code and it looks good to me.
from terraform-switcher.
You may want to make some reference to the new feature on the documentation page
from terraform-switcher.
I have released this feature with #45
It should install any version except for:
- 0.12.0-alpha4
- 0.12.0-alpha3
That's because the file was named incorrectly on the hashicorp release page.
For example, the file for 0.12.0-alpha2
looks like below:
However the the file for 0.12.0-alpha4
looks like below:
Notice the difference in how the file is named. I am assuming this might be an error on Hashicorp and I will open an issue with them. So far I have only noticed the discrepancy in these 2 versions - 0.12.0-alpha4 and 0.12.0-alpha3.
from terraform-switcher.
Related Issues (20)
- Installation via install.sh fails for version 1.0.0 HOT 30
- Latest release 1.0.0 does not support glibc 2.31 or lower HOT 2
- GLIBC 2.31 - No Longer Supported ? HOT 2
- bug: latest version of tfswitch failing glibc version HOT 2
- Version flag is not displaying the correct version HOT 4
- Implement support for multiple Terraform version constraints from the module directory
- Fix code scanning alert
- Why is the test for linux including build tasks? HOT 3
- --show-latest-pre and --show-latest-stable not working
- install.sh tries to download 1.1.0 instead of v1.1.0 HOT 3
- New version v1.1.0 does not work as expected HOT 3
- Error in v1.10 parsing version HOT 3
- Any content in terragrunt.hcl other than "terraform_version_constraint" causes tfswitch to error HOT 7
- We are facing the issue with the latest version(v1.1.0) of tfswitcher HOT 2
- v1.1.0 does not parse tf version constraint correctly HOT 5
- install.sh does not support non v-prefixed tags HOT 3
- Terraform `1.8.2` ships additional file within tarball
- Reading automatically from ~/.tfswitch.toml is broken HOT 17
- `log-level` TOML config doesn't work HOT 1
- How do I turn off logging? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-switcher.