Skip to content

Commit

Permalink
Upgrade tree-sitter
Browse files Browse the repository at this point in the history
  • Loading branch information
ewianda committed Nov 17, 2024
1 parent fafdbfa commit 5ba42ec
Show file tree
Hide file tree
Showing 9 changed files with 504 additions and 1,201 deletions.
17 changes: 15 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module(

bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "rules_python", version = "0.31.0")
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle")
bazel_dep(name = "rules_go", version = "0.50.1", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.40.0", repo_name = "bazel_gazelle")

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
Expand All @@ -23,6 +23,16 @@ use_repo(
"org_golang_x_sync",
)

go_deps_dev = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps", dev_dependency = True)
go_deps_dev.module_override(
patch_strip = 1,
patches = [
"//patches:go-tree-sitter.patch",
"//patches:go-tree-sitter-python.patch",
],
path = "github.com/smacker/go-tree-sitter",
)

python_stdlib_list = use_extension("//python:extensions.bzl", "python_stdlib_list")
use_repo(
python_stdlib_list,
Expand All @@ -32,3 +42,6 @@ use_repo(
"python_stdlib_list_3_8",
"python_stdlib_list_3_9",
)

go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.3")
Loading

0 comments on commit 5ba42ec

Please sign in to comment.