-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add a flag to return the path to the binary #217
Comments
Removed the Template Code from the Issue for better readability |
It might be that the root cause of your problem "the whole -b thing does not work" is solved with #356 |
Given tfswitch -b some/local/dir # have it detect and install the correct terraform version
TERRAFORM_BIN = $(tfswitch which) # returns the path to the terraform that it would use to deploy
$TERRAFORM_BIN apply #or some other terraform command what you want to do is to add full path to Having said that I tbh see no use case for |
I will try and re-test soon |
Any news on that @shadycuz ? |
Is your feature request related to a problem? Please describe.
I'm trying to use terraform-switcher in my jenkins and I'm having problems with the symlink and setting the PATH.
Describe the solution you'd like
Add a flag to terraform-switcher that behaves like
which
, I only want it to return the path to the terraform binary. In our pipeline we deploy lots of different terraform repos so we would like to use the terraform-switcher feature where it automatically determines the version of terraform from the.tf
files.We could then do something like...
Describe alternatives you've considered
ugh none really. The whole
-b
thing doesnt work correctly, at least with jenkins.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: