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

Added Go based automation to update treesitter source. Also bumped to v0.20.8 #138

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

micksmix
Copy link
Contributor

Wrote a Go program (lives in _automation/treesitter_updater) that automates the process of downloading, extracting, and processing the specified version of the Tree Sitter library. It's designed to simplify the updating of the upstream Tree Sitter library for use in this project.

Usage

If you want to change the version of the treesitter library that is retrieved, update the sitterVersion variable in main.go.

Note, you must run this script from within the _automation/treesitter_updater directory because it makes an assumption that the final destination for the .C and .H files is 2 directories up from it's current directory.

cd _automation/treesitter_updater
go run main.go

The success / failure will be printed to stdout, as well as a list of (1) new files and (2) replaced files.

I used this automation to bump the version of treesitter to v0.20.8.

This updated version also resolves this issue: #136

…he specified version of the treesitter library, in _automation/treesitter_updater/main.go.
@micksmix
Copy link
Contributor Author

If you'd prefer, I can provide just the update automation and you can bump it yourself.

@smacker smacker merged commit 233c2f9 into smacker:master Dec 19, 2023
4 checks passed
@smacker
Copy link
Owner

smacker commented Dec 19, 2023

Great work! Thank you

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 this pull request may close these issues.

2 participants