gojp / goreportcard

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

Refresh feature not working #404

Open platypusguy opened 1 year ago

platypusguy commented 1 year ago

When I refresh the report, I always get exactly the same report back. In the year since that report was generated, the project has grown by ~150%, and yet it gives me exactly the same info about the project. Is there something I need to do to refresh the report so that it actually hits the project again and goes through the files?

Project is Jacobin: https://goreportcard.com/report/github.com/platypusguy/jacobin

shawnps commented 1 year ago

@platypusguy we download a .zip of the repository from proxy.golang.org using the latest module version.

So we first get the version from https://proxy.golang.org/github.com/platypusguy/jacobin/@latest which returns:

{"Version":"v0.0.0-20230121230130-f96320012698","Time":"2023-01-21T23:01:30Z","Origin":{"VCS":"git","URL":"https://github.com/platypusguy/jacobin","Hash":"f9632001269859d73ce8bc749b50a7d32499efeb"}}

Then we download the .zip:

https://proxy.golang.org/github.com/platypusguy/jacobin/@v/v0.0.0-20230121230130-f96320012698.zip

If you download the .zip file above you'll see the src dir is missing and thus Go Report Card can't generate a report because there are no .go files.

If I had to guess maybe the go.mod is not in the right place.

platypusguy commented 1 year ago

I'll look into it, but in the meantime, I think you should generate an error message of some kind, rather than just re-posting the previous report. Thanks again!