-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: Script to check for outdated tree-sitter grammars #12310
base: master
Are you sure you want to change the base?
Conversation
How about if you are pinning to a release tag rather than using the latest commit? |
From what I can see, helix itself doesn't use release tags to fetch grammars but just uses commit hashes |
Also I want to mention about implementation of this script The easiest data we can get for a remote repository is the latest couple of commits with I tried looking for any git command which gives a bit more info but they dont seem to exist In this PR i am obtaining the latest commit for each of the remotes Anything more complex would be a lot more difficult and computationally expensive because we would either have to
There's like 200 repos to fetch |
This is a new script for
xtask
which will check if each grammar is outdated or not. For github links it also provides a link to a diff.retrieves a remote's latest commit with
git ls-remote
and compares it against the commit that we have.Usage:
Screenshot: