Skip to content

Commit

Permalink
Update ignite/pkg/gocmd/gocmd.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jerónimo Albi <[email protected]>
  • Loading branch information
tbruyelle and jeronimoalbi authored Mar 14, 2023
1 parent 9a5d644 commit 91f1a87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ignite/pkg/gocmd/gocmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ func IsInstallError(err error) bool {
if err == nil {
return false
}
const label = "no required module provides package"
return strings.Contains(err.Error(), label)
return strings.Contains(err.Error(), "no required module provides package")
}

// Get runs go get pkgs on path with options.
Expand Down

0 comments on commit 91f1a87

Please sign in to comment.