From 1449ad4a4d40e7b9e9a84f0b09f20f6cfb718e9e Mon Sep 17 00:00:00 2001 From: Hendrik van Antwerpen Date: Thu, 5 Oct 2023 15:32:48 +0200 Subject: [PATCH] Fix grammar versions Tree-sitter grammar versions are not semantic. Therefore, we depend on precise versions and don't allow e.g. a new patch version to break our code. --- languages/tree-sitter-stack-graphs-java/Cargo.toml | 2 +- languages/tree-sitter-stack-graphs-typescript/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/tree-sitter-stack-graphs-java/Cargo.toml b/languages/tree-sitter-stack-graphs-java/Cargo.toml index 814447be8..8bd3e5f93 100644 --- a/languages/tree-sitter-stack-graphs-java/Cargo.toml +++ b/languages/tree-sitter-stack-graphs-java/Cargo.toml @@ -37,4 +37,4 @@ harness = false # need to provide own main function to handle running tests anyhow = "1.0" clap = { version = "4", features = ["derive"] } tree-sitter-stack-graphs = { version = "0.7", path = "../../tree-sitter-stack-graphs", features=["cli"] } -tree-sitter-java = { version = "~0.20.0" } +tree-sitter-java = { version = "=0.20.0" } diff --git a/languages/tree-sitter-stack-graphs-typescript/Cargo.toml b/languages/tree-sitter-stack-graphs-typescript/Cargo.toml index 65511e3f8..da5df7ef9 100644 --- a/languages/tree-sitter-stack-graphs-typescript/Cargo.toml +++ b/languages/tree-sitter-stack-graphs-typescript/Cargo.toml @@ -34,7 +34,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" stack-graphs = { version = ">=0.11, <=0.12", path = "../../stack-graphs" } tree-sitter-stack-graphs = { version = "0.7", path = "../../tree-sitter-stack-graphs" } -tree-sitter-typescript = "0.20.2" +tree-sitter-typescript = "=0.20.2" tsconfig = "0.1.0" [dev-dependencies]