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 3, 2025
1 parent 03a8108 commit f34b93a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log (go-package-manager)

## 0.29.7
## 0.29.8

- feat: self-update by executing `gpm update --self`
- chore: improve (self-)update scripts
Expand Down
4 changes: 2 additions & 2 deletions commands/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func Init_Doctor_Command(parentCmd *cobra.Command, app *types.AppContext) {
for _, item := range goMod.Require {
refItem := &item

refItem.Path = strings.TrimSpace(strings.ToLower(refItem.Path))
refItem.Path = strings.TrimSpace(refItem.Path)
refItem.Version = strings.TrimSpace(refItem.Version)

allItems = append(allItems, refItem)
Expand All @@ -139,7 +139,7 @@ func Init_Doctor_Command(parentCmd *cobra.Command, app *types.AppContext) {

thisVersion, err := version.NewVersion(strings.TrimSpace(item.Version))
if err == nil {
url := fmt.Sprintf("https://proxy.golang.org/%s/@latest", item.Path)
url := fmt.Sprintf("https://proxy.golang.org/%s/@latest", strings.ToLower(item.Path))
req, err := http.NewRequest("GET", url, bytes.NewBuffer([]byte{}))
if err == nil {
client := &http.Client{}
Expand Down

0 comments on commit f34b93a

Please sign in to comment.