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

Global Version is ignored if Module is loaded #18

Closed
WhiteTomX opened this issue Apr 27, 2022 · 0 comments · Fixed by #19
Closed

Global Version is ignored if Module is loaded #18

WhiteTomX opened this issue Apr 27, 2022 · 0 comments · Fixed by #19

Comments

@WhiteTomX
Copy link
Owner

Expected Behavior

We should fallback to global version if no Version is specified.

Current Behavior

It will throw an error that the version is not specified.

Possible Solution

Save Global Version or just fallback to tf in path if no version for current folder is foun

Steps to Reproduce (for bugs)

Set-WTerraformVersion -Version 1.0.0 -Global

Close PowerShell and reopen to make sure everything is reloaded and it is not path related.

Import-MOdule WTerraform #make sure we are not using tf from path
terraform version #this should output 1.0.0

Context

This alos effects using terraform right away in the same session as there is the module definitely loaded.

Your Environment

  • Module version used: 0.1.0
  • Operating System and PowerShell version: Windwos 10 PS 5.1
@WhiteTomX WhiteTomX mentioned this issue May 2, 2022
9 tasks
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.

1 participant