You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, ">=0.13.0-rc1" is mangled by the translation and results in interpreting min-required as "0.13.1". This is a bug because at worst results can install and use an undesired version, but mostly is annoying for testing tagged versions.
Solution
The solution is to use a basic regex with 'grep' instead of 'tr' to properly acquire both normal and tagged release versions. An extra test was added to account for this; the results are below.
Notes
This makes 'tfenv min-required' usable with every release of terraform to date (https://releases.hashicorp.com/terraform/) - - 'grep' is used with basic regex instead of an extended regular expression (egrep/grep -E) to facilitate maximum cross-compatibility between platforms and varying implementations of grep.
mrpaws
changed the title
Min-required mangles tagged releases and tries to install invalid versions
Min-required mangles tagged releases and mangles version with 'tr'
Aug 6, 2020
mrpaws
changed the title
Min-required mangles tagged releases and mangles version with 'tr'
Min-required mangles tagged releases with 'tr'
Aug 6, 2020
Problem: 'tfenv <install|use> min-required' incorrectly interprets a tagged release (ie rc1,beta2,alpha3).
For example, ">=0.13.0-rc1" is mangled by the translation and results in interpreting min-required as "0.13.1". This is a bug because at worst results can install and use an undesired version, but mostly is annoying for testing tagged versions.
Solution
The solution is to use a basic regex with 'grep' instead of 'tr' to properly acquire both normal and tagged release versions. An extra test was added to account for this; the results are below.
Notes
Problem in practice (debug):
Solution in practice (debug):
The text was updated successfully, but these errors were encountered: