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

tfversion list --installed produces an error on clean installation. #11

Closed
mmourick opened this issue Mar 4, 2024 · 2 comments · Fixed by #14
Closed

tfversion list --installed produces an error on clean installation. #11

mmourick opened this issue Mar 4, 2024 · 2 comments · Fixed by #14

Comments

@mmourick
Copy link
Collaborator

mmourick commented Mar 4, 2024

Description

Upon clean installation tfversion produces an error when listing installed terraform versions.
I would expect tfversion to display an empty list instead.

Reference

> tfversion list --installed

error listing installation directory: open /Users/mathijs/.tfversion: no such file or directory%

@ChrisTerBeke
Copy link
Collaborator

Seems like we need to ensure this directory before running the list --installed command.

@mmourick
Copy link
Collaborator Author

mmourick commented Mar 4, 2024

@ChrisTerBeke Submitted a PR that does exactly that, ensuring the directory exists does indeed fix the issue.

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

Successfully merging a pull request may close this issue.

2 participants