Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An incorrectly formatted go.mod can permanently prevent the report card from refreshing #429

Open
Arzumify opened this issue Oct 25, 2024 · 0 comments

Comments

@Arzumify
Copy link

If a go.mod contains an invalid module path, by accident or otherwise, the go report card will successfully fetch on initial scanning, but will fail on all subsequent attempts due to attempting to use the potentially incorrect module path stated in the go.mod and will not fetch the new go.mod.

Suggestions to fix this:

  1. Using named tags can fix this, as it would have to re-fetch the actual git repository to find the tag
  2. Using the @master system pkg.go.dev has for a complete re-fetch could also work, as it'd allow the broken go.mod to be replaced
  3. Allowing the removal of repositories can help, as a complete removal and re-initialization of the repository would fix the problem

I'd be happy to make a PR if no progress is made on this.

[https://goreportcard.com/report/git.ailur.dev/ailur/httpserver](The broken repository in question)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant