Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b5c75b

Browse filesBrowse files
authored
Merge pull request #18 from benchsci/upgrade-tree-sitter
Upgrade tree-sitter
2 parents fafdbfa + e2de03c commit 8b5c75b
Copy full SHA for 8b5c75b

File tree

Expand file treeCollapse file tree

7 files changed

+633
-1193
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+633
-1193
lines changed

‎MODULE.bazel

Copy file name to clipboardExpand all lines: MODULE.bazel
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@ module(
66

77
bazel_dep(name = "bazel_skylib", version = "1.6.1")
88
bazel_dep(name = "rules_python", version = "0.31.0")
9-
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
10-
bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle")
9+
bazel_dep(name = "rules_go", version = "0.50.1", repo_name = "io_bazel_rules_go")
10+
bazel_dep(name = "gazelle", version = "0.40.0", repo_name = "bazel_gazelle")
11+
12+
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
13+
14+
http_archive(
15+
name = "com_github_smacker_go_tree_sitter",
16+
integrity = "sha256-ydsF+Evl9CwcTac21N4CV1Nje8GUpXU35YXDfqFliV0=",
17+
patch_args = ["-p1"],
18+
patches = [
19+
"//patches:go-tree-sitter.diff",
20+
],
21+
strip_prefix = "go-tree-sitter-dd81d9e9be82a8cac96ed1d50c7389c5f1997c02",
22+
urls = ["https://github.com/smacker/go-tree-sitter/archive/dd81d9e9be82a8cac96ed1d50c7389c5f1997c02.tar.gz"],
23+
)
1124

1225
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
1326
go_deps.from_file(go_mod = "//:go.mod")
@@ -17,7 +30,6 @@ use_repo(
1730
"com_github_bmatcuk_doublestar_v4",
1831
"com_github_emirpasic_gods",
1932
"com_github_ghodss_yaml",
20-
"com_github_smacker_go_tree_sitter",
2133
"com_github_stretchr_testify",
2234
"in_gopkg_yaml_v2",
2335
"org_golang_x_sync",
@@ -32,3 +44,6 @@ use_repo(
3244
"python_stdlib_list_3_8",
3345
"python_stdlib_list_3_9",
3446
)
47+
48+
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
49+
go_sdk.download(version = "1.23.3")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.