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

could not get latest module version: no matching versions for query "latest" #427

Open
HaraldNordgren opened this issue Aug 1, 2024 · 4 comments

Comments

@HaraldNordgren
Copy link

HaraldNordgren commented Aug 1, 2024

This is happening when trying to refresh this repo. It hasn’t been refreshed for 2 years:

https://goreportcard.com/report/github.com/elastic/go-elasticsearch

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/github.com/elastic/go-elasticsearch/@latest: not found: module github.com/elastic/go-elasticsearch: no matching versions for query "latest"
@oCHRISo
Copy link

oCHRISo commented Aug 21, 2024

Plus 1 for the same issue but with a different repo.

When trying to generate a report on https://goreportcard.com/ for the repo https://github.com/nginx/agent I get the below error

Screenshot 2024-08-21 at 07 15 01

@shawnps
Copy link
Contributor

shawnps commented Aug 21, 2024

@oCHRISo it seems the issue is the module name:

https://github.com/nginx/agent/blob/main/go.mod#L1

https://goreportcard.com/report/github.com/nginx/agent/v2

For reference, if it doesn't show up on pkg.go.dev, it most likely won't show up in Go Report Card, because we're using proxy.golang.org to download the repos:

https://pkg.go.dev/search?q=github.com%2Fnginx%2Fagent&m=

@shawnps
Copy link
Contributor

shawnps commented Aug 21, 2024

@HaraldNordgren I think it's a similar issue, please try github.com/elastic/go-elasticsearch/v8:

https://goreportcard.com/report/github.com/elastic/go-elasticsearch/v8

@lordofscripts
Copy link

I am getting a similar issue. I got it working somehow on a previous repository that is NOT on pkg.go.dev but on this new one it just doesn't work. It shows the results of the first run from 3 days ago but despite having fixed the format issues, this is still reporting badly:

https://goreportcard.com/report/github.com/lordofscripts/wipechromium

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

4 participants