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

Trailing whitespace breaks version resolution #431

Open
Meosit opened this issue Mar 11, 2024 · 2 comments
Open

Trailing whitespace breaks version resolution #431

Meosit opened this issue Mar 11, 2024 · 2 comments

Comments

@Meosit
Copy link

Meosit commented Mar 11, 2024

I was setting up existing repo with .terraform-version file of the project that I've just pulled and there is a issue that I was facing:

data-infra $ terraform -v
/opt/homebrew/Cellar/tfenv/3.0.0/lib/tfenv-version-name.sh: line 75: requested: unbound variable

The root cause of the issue is that the .terraform-version had the following content (WITH new line in the end of the file):

latest:^1.7

The issue fix probably should be located here: https://github.com/tfutils/tfenv/blob/v3.0.0/libexec/tfenv-resolve-version#L132

@julian-alarcon
Copy link

Got the same issue. Is this still maintained?

@kvendingoldo
Copy link

@julian-alarcon try to switch to https://github.com/tofuutils/tenv, we have covered this 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

No branches or pull requests

3 participants