Skip to content

Commit

Permalink
Merge pull request #150 from kevincobain2000/feature/gobrew-mod-major
Browse files Browse the repository at this point in the history
only support go.mod major versions
  • Loading branch information
kevincobain2000 committed Nov 2, 2023
2 parents 1dbbb5f + 5f566b0 commit 99135bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gobrew.go
Expand Up @@ -94,6 +94,7 @@ func (gb *GoBrew) Interactive(ask bool) {
modVersion := ""
if gb.hasModFile() {
modVersion = gb.getModVersion()
modVersion = ExtractMajorVersion(modVersion)
}

if modVersion == "" {
Expand Down

0 comments on commit 99135bd

Please sign in to comment.