-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Download terraform versions using >=
and ~>
specifiers
#1776
Conversation
Tests looking good, but in the way it is.. it will require to keep up-to-date these tests as the latest version of terraform may get updated at some point then instead of |
@fblgit any updates on this? Thanks for the contribution |
are there any updates for this? |
No activity for more than 30 days. closing |
Can I help with this PR? This seems to be almost finished and would bring great value. |
@fblgit @pszypowicz yes please feel free to take over if you think this PR has value. |
@fblgit @pszypowicz i went ahead and fixed the conflicts in case anyone would like to take over by branching off this branch or updating the existing one |
cd65563
to
8671a69
Compare
>=
and ~>
specifiers
thank you!! |
I assume |
This should only affect tf root modules with |
I have |
Unsure how it will interact. Please let us know and help contribute docs for the website. We want to make sure everything is as clear as possible. |
I just did a test with |
…#1776) * Refactor TFVersion from Dir with tfswitch lib * Added tests and cleaned up code * linted fmtd * fixed conflict go.mod * bumped to tf1.0.6 * bumped go.mod * Update project_command_context_builder.go * Bump warrensbox/terraform-switcher * Fix tests * rm redundant mocks library import Co-authored-by: xmurias <xmurias@gmail.com> Co-authored-by: Xavier <77047592+xavipanda@users.noreply.github.com> Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
>=
and ~>
specifiers>=
and ~>
specifiers
Implements tfswitch libs and semver to parse properly the terraform files version, then compares against the available terraform releases and returns version.Version object with the right value.
This is the first PR, let me know if I'm missing something here.
Libraries
Closes
required_version
other than=
e.g.~>
and>
#1217