Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ObserverOfTime
Copy link
Member

@ObserverOfTime ObserverOfTime commented Aug 23, 2025

Currently, including a tree-sitter parser as a dependency in a zig project and running zig build test on the project will fetch the zig-tree-sitter dependency declared by the parser. This is a problem because (a) consumers may not want this dependency for whatever reason and (b) due to how often Zig breaks everything and how scarcely most tree-sitter parsers are updated, the zig-tree-sitter version pinned by the parser module will often be outdated and broken.

The workaround I used was taken from https://ziggit.dev/t/11234.

I also noticed that we were unconditionally replacing the files and fixed that while I was at it.


/cc @nvlled

Currently, including a tree-sitter parser as a dependency in a zig
project and running `zig build test` on the project will fetch the
zig-tree-sitter dependency declared by the parser. This is a problem
because (a) consumers may not want this dependency for whatever reason
and (b) due to how often Zig breaks everything and how scarcely most
tree-sitter parsers are updated, the zig-tree-sitter version pinned
by the parser module will often be outdated and broken.

The workaround I used was taken from https://ziggit.dev/t/11234
@ObserverOfTime ObserverOfTime merged commit 107bd80 into tree-sitter:master Aug 28, 2025
19 checks passed
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.25:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants