Skip to content

Commit 3072cc2

Browse files
authored
Merge pull request #249 from afreyermuth98/master
🐛 Corrected bad installations if user doesn't input 2 dots in ver…
2 parents 59df4fb + 585ed97 commit 3072cc2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/list_versions.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func GetTFLatest(mirrorURL string) (string, error) {
7373

7474
//GetTFLatestImplicit : Get the latest implicit terraform version given the hashicorp url
7575
func GetTFLatestImplicit(mirrorURL string, preRelease bool, version string) (string, error) {
76-
7776
if preRelease == true {
7877
//TODO: use GetTFList() instead of GetTFURLBody
7978
versions, error := GetTFURLBody(mirrorURL)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func main() {
5656
listAllFlag := getopt.BoolLong("list-all", 'l', "List all versions of terraform - including beta and rc")
5757
latestPre := getopt.StringLong("latest-pre", 'p', defaultLatest, "Latest pre-release implicit version. Ex: tfswitch --latest-pre 0.13 downloads 0.13.0-rc1 (latest)")
5858
showLatestPre := getopt.StringLong("show-latest-pre", 'P', defaultLatest, "Show latest pre-release implicit version. Ex: tfswitch --show-latest-pre 0.13 prints 0.13.0-rc1 (latest)")
59-
latestStable := getopt.StringLong("latest-stable", 's', defaultLatest, "Latest implicit version. Ex: tfswitch --latest-stable 0.13 downloads 0.13.7 (latest)")
59+
latestStable := getopt.StringLong("latest-stable", 's', defaultLatest, "Latest implicit version based on a constraint. Ex: tfswitch --latest-stable 0.13.0 downloads 0.13.7 and 0.13 downloads 0.15.5 (latest)")
6060
showLatestStable := getopt.StringLong("show-latest-stable", 'S', defaultLatest, "Show latest implicit version. Ex: tfswitch --show-latest-stable 0.13 prints 0.13.7 (latest)")
6161
latestFlag := getopt.BoolLong("latest", 'u', "Get latest stable version")
6262
showLatestFlag := getopt.BoolLong("show-latest", 'U', "Show latest stable version")

0 commit comments

Comments
 (0)