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

Error: Could not analyze the repository #432

Open
cyclone-github opened this issue Dec 11, 2024 · 0 comments
Open

Error: Could not analyze the repository #432

cyclone-github opened this issue Dec 11, 2024 · 0 comments

Comments

@cyclone-github
Copy link

cyclone-github commented Dec 11, 2024

The Go Report Card for my repository github.com/cyclone-github/hashgen is nearly 2 years out of date and does not reflect the current state of the repository. Upon investigating, it appears that Go Report Card is using an incorrect URL when attempting to fetch / refresh the latest module version which results in an error.

Error when Refreshing Go Report Card:

There was an error processing your request: Could not analyze the repository: could not download repo: could not get latest module version from https://proxy.golang.org/hashgen/@latest

image

Testing output from currently used URL: https://proxy.golang.org/hashgen/@latest

bad request: invalid escaped module path "hashgen": malformed module path "hashgen": missing dot in first path element

Testing output from corrected URL: https://proxy.golang.org/github.com/cyclone-github/hashgen/@latest

{
  "Version": "v1.0.0",
  "Time": "2024-12-11T01:09:35Z",
  "Origin": {
    "VCS": "git",
    "URL": "https://github.com/cyclone-github/hashgen",
    "Hash": "7c4d425a27f7931856501a7920ee86cc57f67a00",
    "Ref": "refs/tags/v1.0.0"
  }
}

Issue:

This issue is due to Go Report Card using an incorrect URL to fetch / refresh GitHub repositories. This only seems to affect older repositories as new repositories use the correct URL in my testing.
https://proxy.golang.org/{username}/{repo}/@latest

Fix:

Force Fetch / Refresh to use the correct URL:
https://proxy.golang.org/github.com/{username}/{repo}/@latest

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