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 a8a8e75
Show file tree
Hide file tree
Showing 10 changed files with 684 additions and 1,193 deletions.
21 changes: 18 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@ 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")

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "com_github_smacker_go_tree_sitter",
integrity = "sha256-ydsF+Evl9CwcTac21N4CV1Nje8GUpXU35YXDfqFliV0=",
patch_args = ["-p1"],
patches = [
"//patches:go-tree-sitter.diff",
],
strip_prefix = "go-tree-sitter-dd81d9e9be82a8cac96ed1d50c7389c5f1997c02",
urls = ["https://github.com/smacker/go-tree-sitter/archive/dd81d9e9be82a8cac96ed1d50c7389c5f1997c02.tar.gz"],
)

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
Expand All @@ -17,7 +30,6 @@ use_repo(
"com_github_bmatcuk_doublestar_v4",
"com_github_emirpasic_gods",
"com_github_ghodss_yaml",
"com_github_smacker_go_tree_sitter",
"com_github_stretchr_testify",
"in_gopkg_yaml_v2",
"org_golang_x_sync",
Expand All @@ -32,3 +44,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 a8a8e75

Please sign in to comment.