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

more lenient tree-sitter dep range #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sqs
Copy link
Member

@sqs sqs commented Jan 10, 2025

This makes it possible to depend on tree-sitter-jsonnet from packages using newer versions of tree-sitter.

@sqs sqs force-pushed the sqs/tree-sitter-dep-ver branch 2 times, most recently from 00ce2b9 to 820feae Compare January 10, 2025 04:00
This makes it possible to depend on `tree-sitter-jsonnet` from packages using newer versions of `tree-sitter`.
@sqs sqs force-pushed the sqs/tree-sitter-dep-ver branch from 820feae to 9dea030 Compare January 10, 2025 04:24
Comment on lines -23 to +18
tree-sitter = "0.22.6"
tree-sitter = "^0.24.5"
Copy link

@varungandhi-src varungandhi-src Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not more lenient than the previous range (the PR title says "more lenient tree-sitter dep range"). The meaning of 0.22.6 is 0.22.6 <= v < 0.23. The meaning of ^0.24.5 is 0.24.5 <= v < 0.25. So the ranges do not have overlap.

What is the reason for bumping the ranges here? Is it for the syntax highlighter in the monorepo?

Over there, we need all grammars to be compiled with the same version of tree-sitter. Right now, the Cargo.toml for the workspace in the monorepo requires 0.22.6 <= v < 0.23.

https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/docker-images/syntax-highlighter/Cargo.toml?L50

"tree-sitter": "^0.21.0"
"tree-sitter": "^0.22.4"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems odd/unusual... Why is the library dependency version different from the CLI version below?

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