gojp / goreportcard

A report card for your Go application
https://goreportcard.com
Apache License 2.0
1.99k stars 252 forks source link

Bug: report doesn't work when `-` inside github group name #392

Closed mk-5 closed 1 year ago

mk-5 commented 2 years ago

Steps to reproduce:

Open any repo with - in user group name, like https://goreportcard.com/report/github.com/mk-5/fjira

Problem:

There is no way to show report for github repositories that contains - character inside group name, like github.com/ab-2/somerepo. The github url is automatically converted to github.com/ab2/somerepo. Error message for above example: could not download repo: could not get latest module version from https://proxy.golang.org/github.com/mk5/fjira/@latest:

Expected behaviour:

The url with - inside group name should work.

mk-5 commented 1 year ago

there was no problem with parsing - it was a repo issue. The name of the module needs to be exact match with name of the repo