Skip to content

Commit

Permalink
fix: doctor command
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Jan 2, 2025
1 parent 2caf3aa commit 5f1e410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func Init_Doctor_Command(parentCmd *cobra.Command, app *types.AppContext) {
// cleanups and extract direct items
directItems := make([]GoModFileRequireItem, 0)
for _, item := range goMod.Require {
item.Path = strings.TrimSpace(item.Path)
item.Path = strings.TrimSpace(strings.ToLower(item.Path))
item.Version = strings.TrimSpace(item.Version)

if item.Indirect == nil || !*item.Indirect {
Expand Down Expand Up @@ -425,7 +425,7 @@ func Init_Doctor_Command(parentCmd *cobra.Command, app *types.AppContext) {
if varValue != "" {
fmt.Printf("\t[%s] %s is set: %s%s", green("✓"), varName, varValue, fmt.Sprintln())
} else {
fmt.Printf("\t[%s] %s is not set%s", red("!"), varName, fmt.Sprintln())
fmt.Printf("\t[%s] %s is not set%s", yellow("⚠️"), varName, fmt.Sprintln())
}
}
}
Expand Down

0 comments on commit 5f1e410

Please sign in to comment.