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

add terratest to the supported tools #225

Closed
tbugfinder opened this issue Aug 7, 2024 · 7 comments
Closed

add terratest to the supported tools #225

tbugfinder opened this issue Aug 7, 2024 · 7 comments

Comments

@tbugfinder
Copy link

tbugfinder commented Aug 7, 2024

Is your feature request related to a problem? Please describe.
I'm always frustrated by managing versions of my terraform and tofu tooling. As terratest is also being used, this is not supported yet in tenv.

Describe the solution you'd like
Terratest is another tool being used within the terraform / tofu space. It would be very beneficial to also manage it using tenv.

Describe alternatives you've considered
Maintain terratest versions on my own.
Actually this sounds like a go version manager, though (sort of).

Additional context
N/A

REF: https://github.com/gruntwork-io/terratest

@kvendingoldo
Copy link
Collaborator

We have the similar request about tflint / trivy: #210
Do you think, that terratest requires anything more than just a version update? Please, describe your case a little bit more

@tbugfinder
Copy link
Author

Well, as updated above it's more a go version manager then.
AFAICT, it's just about pulling the proper version and maybe set ENV variables depending on how the installation is applied.

Terratest is based on go test and the terratest code versions are maintained within go.mod/go.sum.

I would just be helpful to support GO version management within tenv instead of incorporating asdf.

@dvaumoron
Copy link
Contributor

I still don't understand which feature you are waiting to help you in your use of terratest.

I am maybe missing something, however it seem to me that go get github.com/gruntwork-io/terratest@<version> (where <version> can be latest), do what you need (downloading locally, updating go.mod).

@tbugfinder
Copy link
Author

In order to leverage terratest (go get..), go is a pre-requisite. As mentioned above this request might rather sound like a go version manager backed into tenv. It would just allow us to use a single tool for managing dependencies.

@dvaumoron
Copy link
Contributor

tenv is not meant to replace classical package manager to help keeping up to date all your tools. tenv is useful to work on several project with IAC because each one could need different incompatible tool version.

However, I have done an other project which might help : https://github.com/dvaumoron/lastgo

@tbugfinder
Copy link
Author

Your point is taken 😃
I'll look into gvm / goenv.

Thank you!

@tbugfinder tbugfinder closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
@samuel-phan
Copy link
Contributor

You may consider contributing in adding a Terratest plugin for ASDF:
https://asdf-vm.com/contribute/first-party-plugins.html

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

4 participants