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

chain-registry is not up-to-date #9

Open
ebuchman opened this issue Oct 14, 2022 · 0 comments · May be fixed by #12
Open

chain-registry is not up-to-date #9

ebuchman opened this issue Oct 14, 2022 · 0 comments · May be fixed by #12

Comments

@ebuchman
Copy link
Member

We can get the repo from the chain-registry but the version it reports is often out of date.

Can we instead get the latest release from the chain's repo and get the versions based on that ?

I guess no method is going to be 100% accurate depending on dev practices. There's no real way to automate this because we don't know when versions get deployed.

Maybe we can just show the output from both ?

odeke-em added a commit that referenced this issue Oct 15, 2022
…ccurate

This change implements functionality to retrieve the latest
go.mod from the live Github repository. It also requires that
the spreadsheet have 2 different sheets "Projects" & "LatestProjects"

The only problem is that we quickly hit Github API quotas with messages like:

```
error="{\"message\":\"API rate limit exceeded for [REDACTED]. (But here's the
good news: Authenticated requests get a higher rate limit. Check out the documentation
for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}\n"
org_repo=/vidulum/mainnet
```

Updates #9
odeke-em added a commit that referenced this issue Oct 16, 2022
This code uses the always live Github version of each repository
because sadly the content on the chain-registry is heavily unmaintained.
This change performs a shallow git clone to only get the default branch
from `.git/HEAD` => `/refs/<DEFAULT_BRANCH>` to then go fetch the live
code. It is so much better to get the live data that try to guess what
was deployed and in the chain registry since we've got deadlinks like:
* https://github.com/imversed/imversed

Fixes #9
odeke-em added a commit that referenced this issue Oct 16, 2022
This code uses the always live Github version of each repository
because sadly the content on the chain-registry is heavily unmaintained.
This change performs a shallow git clone to only get the default branch
from `.git/HEAD` => `/refs/<DEFAULT_BRANCH>` to then go fetch the live
code. It is so much better to get the live data that try to guess what
was deployed and in the chain registry since we've got deadlinks like:
* https://github.com/imversed/imversed

Fixes #9
odeke-em added a commit that referenced this issue Oct 16, 2022
This code uses the always live Github version of each repository
because sadly the content on the chain-registry is heavily unmaintained.
This change performs a shallow git clone to only get the default branch
from `.git/HEAD` => `/refs/<DEFAULT_BRANCH>` to then go fetch the live
code. It is so much better to get the live data that try to guess what
was deployed and in the chain registry since we've got deadlinks like:
* https://github.com/imversed/imversed

Fixes #9
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

Successfully merging a pull request may close this issue.

1 participant