Skip to content

Commit

Permalink
feat: unignore
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Nov 20, 2024
1 parent 3c667d2 commit 653737f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions gobrew.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ func (gb *GoBrew) Interactive(ask bool) {
color.Successln("📄 go.mod Version", " .......", modVersion)
}

// color.Successln("🌟 GO Latest Version", " .......", latestVersion)

fmt.Println()

if currentVersion == NoneVersion {
Expand All @@ -161,13 +159,13 @@ func (gb *GoBrew) Interactive(ask bool) {
if modVersion != NoneVersion && currentMajorVersion != modVersion {
color.Warnf("⚠️ GO Installed Version (%s) and go.mod Version (%s) are different.\n", currentMajorVersion, modVersion)
fmt.Println(" Please consider updating your go.mod file")
// c := true
// if ask {
// c = askForConfirmation("Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?")
// }
// if c {
// gb.Use(modVersion + "@latest")
// }
c := true
if ask {
c = askForConfirmation("Do you want to use GO version same as go.mod version (" + modVersion + "@latest)?")
}
if c {
gb.Use(modVersion + "@latest")
}
return
}

Expand Down

0 comments on commit 653737f

Please sign in to comment.