Skip to content

Error: Could not analyze the repository #432

@cyclone-github

Description

@cyclone-github

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions