diff --git a/MODULE.bazel b/MODULE.bazel index a430cb4..9a783ab 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -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") @@ -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", @@ -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") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 9c6b15c..d59bfcd 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 6, - "moduleFileHash": "36a9dc9d53f872e231c3dfc3dcf7e90949b064cdaf5f83bb3e48bfa190bab448", + "moduleFileHash": "aead64bd0293e622f8aa5f66f8aaeea07658d5590165a8db1cbc1fd23cec8d40", "flags": { "cmdRegistries": [ "https://bcr.bazel.build/" @@ -24,13 +24,54 @@ "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [ + { + "extensionBzlFile": "//:MODULE.bazel", + "extensionName": "_repo_rules", + "usingModule": "", + "location": { + "file": "@@//:MODULE.bazel", + "line": 0, + "column": 0 + }, + "imports": { + "com_github_smacker_go_tree_sitter": "com_github_smacker_go_tree_sitter" + }, + "devImports": [], + "tags": [ + { + "tagName": "@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributeValues": { + "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" + ], + "name": "com_github_smacker_go_tree_sitter" + }, + "devDependency": false, + "location": { + "file": "@@//:MODULE.bazel", + "line": 14, + "column": 13 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, { "extensionBzlFile": "@bazel_gazelle//:extensions.bzl", "extensionName": "go_deps", "usingModule": "", "location": { "file": "@@//:MODULE.bazel", - "line": 12, + "line": 25, "column": 24 }, "imports": { @@ -38,7 +79,6 @@ "com_github_bmatcuk_doublestar_v4": "com_github_bmatcuk_doublestar_v4", "com_github_emirpasic_gods": "com_github_emirpasic_gods", "com_github_ghodss_yaml": "com_github_ghodss_yaml", - "com_github_smacker_go_tree_sitter": "com_github_smacker_go_tree_sitter", "com_github_stretchr_testify": "com_github_stretchr_testify", "in_gopkg_yaml_v2": "in_gopkg_yaml_v2", "org_golang_x_sync": "org_golang_x_sync" @@ -53,7 +93,7 @@ "devDependency": false, "location": { "file": "@@//:MODULE.bazel", - "line": 13, + "line": 26, "column": 18 } } @@ -67,7 +107,7 @@ "usingModule": "", "location": { "file": "@@//:MODULE.bazel", - "line": 26, + "line": 38, "column": 35 }, "imports": { @@ -81,13 +121,41 @@ "tags": [], "hasDevUseExtension": false, "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@io_bazel_rules_go//go:extensions.bzl", + "extensionName": "go_sdk", + "usingModule": "", + "location": { + "file": "@@//:MODULE.bazel", + "line": 48, + "column": 23 + }, + "imports": {}, + "devImports": [], + "tags": [ + { + "tagName": "download", + "attributeValues": { + "version": "1.23.3" + }, + "devDependency": false, + "location": { + "file": "@@//:MODULE.bazel", + "line": 49, + "column": 16 + } + } + ], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true } ], "deps": { "bazel_skylib": "bazel_skylib@1.6.1", - "rules_python": "rules_python@0.32.2", - "io_bazel_rules_go": "rules_go@0.41.0", - "bazel_gazelle": "gazelle@0.33.0", + "rules_python": "rules_python@0.31.0", + "io_bazel_rules_go": "rules_go@0.50.1", + "bazel_gazelle": "gazelle@0.40.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" } @@ -104,7 +172,7 @@ ], "extensionUsages": [], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -122,10 +190,10 @@ } } }, - "rules_python@0.32.2": { + "rules_python@0.31.0": { "name": "rules_python", - "version": "0.32.2", - "key": "rules_python@0.32.2", + "version": "0.31.0", + "key": "rules_python@0.31.0", "repoName": "rules_python", "executionPlatformsToRegister": [], "toolchainsToRegister": [ @@ -135,10 +203,10 @@ { "extensionBzlFile": "@rules_python//python/private/bzlmod:internal_deps.bzl", "extensionName": "internal_deps", - "usingModule": "rules_python@0.32.2", + "usingModule": "rules_python@0.31.0", "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.32.2/MODULE.bazel", - "line": 16, + "file": "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel", + "line": 15, "column": 30 }, "imports": { @@ -166,8 +234,8 @@ "attributeValues": {}, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.32.2/MODULE.bazel", - "line": 17, + "file": "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel", + "line": 16, "column": 22 } } @@ -178,15 +246,13 @@ { "extensionBzlFile": "@rules_python//python/extensions:python.bzl", "extensionName": "python", - "usingModule": "rules_python@0.32.2", + "usingModule": "rules_python@0.31.0", "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.32.2/MODULE.bazel", - "line": 42, + "file": "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel", + "line": 41, "column": 23 }, "imports": { - "python_3_11": "python_3_11", - "python_versions": "python_versions", "pythons_hub": "pythons_hub" }, "devImports": [], @@ -199,57 +265,21 @@ }, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.32.2/MODULE.bazel", - "line": 48, + "file": "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel", + "line": 47, "column": 17 } } ], "hasDevUseExtension": false, "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@rules_python//python/extensions:pip.bzl", - "extensionName": "pip", - "usingModule": "rules_python@0.32.2", - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.32.2/MODULE.bazel", - "line": 60, - "column": 20 - }, - "imports": { - "rules_python_publish_deps": "rules_python_publish_deps" - }, - "devImports": [], - "tags": [ - { - "tagName": "parse", - "attributeValues": { - "experimental_index_url": "https://pypi.org/simple", - "hub_name": "rules_python_publish_deps", - "python_version": "3.11", - "requirements_darwin": "//tools/publish:requirements_darwin.txt", - "requirements_lock": "//tools/publish:requirements.txt", - "requirements_windows": "//tools/publish:requirements_windows.txt" - }, - "devDependency": false, - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.32.2/MODULE.bazel", - "line": 61, - "column": 10 - } - } - ], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true } ], "deps": { - "bazel_features": "bazel_features@1.9.1", + "bazel_features": "bazel_features@1.18.0", "bazel_skylib": "bazel_skylib@1.6.1", - "rules_cc": "rules_cc@0.0.9", - "platforms": "platforms@0.0.7", - "rules_proto": "rules_proto@6.0.0-rc1", + "platforms": "platforms@0.0.10", + "rules_proto": "rules_proto@6.0.0", "com_google_protobuf": "protobuf@21.7", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -259,55 +289,39 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_python/releases/download/0.32.2/rules_python-0.32.2.tar.gz" + "https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz" ], - "integrity": "sha256-SRLO1w3BoqjkuGzsIzsZLKBT6CvHLYd7mOEmFW6PIo0=", - "strip_prefix": "rules_python-0.32.2", + "integrity": "sha256-xovcT77CXeW1STuIGc/Id8TqKZwNyxXCRMWgAgjN4xE=", + "strip_prefix": "rules_python-0.31.0", "remote_patches": { - "https://bcr.bazel.build/modules/rules_python/0.32.2/patches/module_dot_bazel_version.patch": "sha256-lfZaBBRr2RFX7bO0wsVwW9urJGDBxoJHEwQ2tMN862k=" + "https://bcr.bazel.build/modules/rules_python/0.31.0/patches/module_dot_bazel_version.patch": "sha256-j2KF6j66J2fRAGtc56Zj7Hp1dTGqOWPAR3+IODr0oLQ=" }, "remote_patch_strip": 1 } } }, - "rules_go@0.41.0": { + "rules_go@0.50.1": { "name": "rules_go", - "version": "0.41.0", - "key": "rules_go@0.41.0", + "version": "0.50.1", + "key": "rules_go@0.50.1", "repoName": "io_bazel_rules_go", "executionPlatformsToRegister": [], "toolchainsToRegister": [ "@go_toolchains//:all" ], "extensionUsages": [ - { - "extensionBzlFile": "@io_bazel_rules_go//go/private:extensions.bzl", - "extensionName": "non_module_dependencies", - "usingModule": "rules_go@0.41.0", - "location": { - "file": "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel", - "line": 13, - "column": 40 - }, - "imports": { - "io_bazel_rules_nogo": "io_bazel_rules_nogo" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, { "extensionBzlFile": "@io_bazel_rules_go//go:extensions.bzl", "extensionName": "go_sdk", - "usingModule": "rules_go@0.41.0", + "usingModule": "rules_go@0.50.1", "location": { - "file": "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel", - "line": 19, + "file": "https://bcr.bazel.build/modules/rules_go/0.50.1/MODULE.bazel", + "line": 16, "column": 23 }, "imports": { - "go_toolchains": "go_toolchains" + "go_toolchains": "go_toolchains", + "io_bazel_rules_nogo": "io_bazel_rules_nogo" }, "devImports": [], "tags": [ @@ -315,12 +329,12 @@ "tagName": "download", "attributeValues": { "name": "go_default_sdk", - "version": "1.20.2" + "version": "1.21.8" }, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel", - "line": 20, + "file": "https://bcr.bazel.build/modules/rules_go/0.50.1/MODULE.bazel", + "line": 17, "column": 16 } } @@ -331,10 +345,10 @@ { "extensionBzlFile": "@gazelle//:extensions.bzl", "extensionName": "go_deps", - "usingModule": "rules_go@0.41.0", + "usingModule": "rules_go@0.50.1", "location": { - "file": "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel", - "line": 30, + "file": "https://bcr.bazel.build/modules/rules_go/0.50.1/MODULE.bazel", + "line": 31, "column": 24 }, "imports": { @@ -343,8 +357,11 @@ "com_github_golang_protobuf": "com_github_golang_protobuf", "org_golang_google_genproto": "org_golang_google_genproto", "org_golang_google_grpc": "org_golang_google_grpc", + "org_golang_google_grpc_cmd_protoc_gen_go_grpc": "org_golang_google_grpc_cmd_protoc_gen_go_grpc", "org_golang_google_protobuf": "org_golang_google_protobuf", - "org_golang_x_net": "org_golang_x_net" + "org_golang_x_net": "org_golang_x_net", + "org_golang_x_tools": "org_golang_x_tools", + "bazel_gazelle_go_repository_config": "bazel_gazelle_go_repository_config" }, "devImports": [], "tags": [ @@ -355,23 +372,9 @@ }, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel", - "line": 31, - "column": 18 - } - }, - { - "tagName": "module", - "attributeValues": { - "path": "github.com/gogo/protobuf", - "sum": "h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=", - "version": "v1.3.2" - }, - "devDependency": false, - "location": { - "file": "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel", + "file": "https://bcr.bazel.build/modules/rules_go/0.50.1/MODULE.bazel", "line": 32, - "column": 15 + "column": 18 } } ], @@ -380,11 +383,12 @@ } ], "deps": { + "io_bazel_rules_go_bazel_features": "bazel_features@1.18.0", "bazel_skylib": "bazel_skylib@1.6.1", - "platforms": "platforms@0.0.7", - "rules_proto": "rules_proto@6.0.0-rc1", + "platforms": "platforms@0.0.10", + "rules_proto": "rules_proto@6.0.0", "com_google_protobuf": "protobuf@21.7", - "gazelle": "gazelle@0.33.0", + "gazelle": "gazelle@0.40.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -393,21 +397,19 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip" + "https://github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip" ], - "integrity": "sha256-J4t/9agm89wQ8E/q8LcNSLaHSMzVEtf5i/RCB38EP+M=", + "integrity": "sha256-9KkxRRjKas+hbMSrQ7C4zh5OpkuBw42KN3KIPxUzRrg=", "strip_prefix": "", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_go/0.41.0/patches/bump_gazelle_version.patch": "sha256-50a277c9CqDhHN0A+EnA++cjEzbCBbhjRao/xOoGgHk=" - }, - "remote_patch_strip": 1 + "remote_patches": {}, + "remote_patch_strip": 0 } } }, - "gazelle@0.33.0": { + "gazelle@0.40.0": { "name": "gazelle", - "version": "0.33.0", - "key": "gazelle@0.33.0", + "version": "0.40.0", + "key": "gazelle@0.40.0", "repoName": "bazel_gazelle", "executionPlatformsToRegister": [], "toolchainsToRegister": [], @@ -415,10 +417,10 @@ { "extensionBzlFile": "@io_bazel_rules_go//go:extensions.bzl", "extensionName": "go_sdk", - "usingModule": "gazelle@0.33.0", + "usingModule": "gazelle@0.40.0", "location": { - "file": "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel", - "line": 12, + "file": "https://bcr.bazel.build/modules/gazelle/0.40.0/MODULE.bazel", + "line": 16, "column": 23 }, "imports": { @@ -432,10 +434,10 @@ { "extensionBzlFile": "@bazel_gazelle//internal/bzlmod:non_module_deps.bzl", "extensionName": "non_module_deps", - "usingModule": "gazelle@0.33.0", + "usingModule": "gazelle@0.40.0", "location": { - "file": "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel", - "line": 20, + "file": "https://bcr.bazel.build/modules/gazelle/0.40.0/MODULE.bazel", + "line": 24, "column": 32 }, "imports": { @@ -451,10 +453,10 @@ { "extensionBzlFile": "@bazel_gazelle//:extensions.bzl", "extensionName": "go_deps", - "usingModule": "gazelle@0.33.0", + "usingModule": "gazelle@0.40.0", "location": { - "file": "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel", - "line": 28, + "file": "https://bcr.bazel.build/modules/gazelle/0.40.0/MODULE.bazel", + "line": 32, "column": 24 }, "imports": { @@ -467,7 +469,9 @@ "org_golang_x_sync": "org_golang_x_sync", "org_golang_x_tools": "org_golang_x_tools", "org_golang_x_tools_go_vcs": "org_golang_x_tools_go_vcs", - "bazel_gazelle_go_repository_config": "bazel_gazelle_go_repository_config" + "bazel_gazelle_go_repository_config": "bazel_gazelle_go_repository_config", + "com_github_golang_protobuf": "com_github_golang_protobuf", + "org_golang_google_protobuf": "org_golang_google_protobuf" }, "devImports": [], "tags": [ @@ -478,8 +482,8 @@ }, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel", - "line": 29, + "file": "https://bcr.bazel.build/modules/gazelle/0.40.0/MODULE.bazel", + "line": 33, "column": 18 } }, @@ -487,13 +491,13 @@ "tagName": "module", "attributeValues": { "path": "golang.org/x/tools", - "sum": "h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo=", - "version": "v0.9.1" + "sum": "h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ=", + "version": "v0.18.0" }, "devDependency": false, "location": { - "file": "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel", - "line": 33, + "file": "https://bcr.bazel.build/modules/gazelle/0.40.0/MODULE.bazel", + "line": 37, "column": 15 } } @@ -503,10 +507,13 @@ } ], "deps": { + "bazel_features": "bazel_features@1.18.0", "bazel_skylib": "bazel_skylib@1.6.1", "com_google_protobuf": "protobuf@21.7", - "io_bazel_rules_go": "rules_go@0.41.0", - "rules_proto": "rules_proto@6.0.0-rc1", + "io_bazel_rules_go": "rules_go@0.50.1", + "rules_license": "rules_license@1.0.0", + "rules_proto": "rules_proto@6.0.0", + "rules_shell": "rules_shell@0.2.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -515,12 +522,14 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz" + "https://github.com/bazel-contrib/bazel-gazelle/releases/download/v0.40.0/bazel-gazelle-v0.40.0.tar.gz" ], - "integrity": "sha256-0/pmo5Ao6X12+eLbjxsMEcCZ6OAb82OpIwdHhORR+Ak=", + "integrity": "sha256-qAiTKSrh146u7dUNHKuY8kKhfj1XQbG5+1i1/Z0tV7w=", "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 + "remote_patches": { + "https://bcr.bazel.build/modules/gazelle/0.40.0/patches/module_dot_bazel_version.patch": "sha256-7q0+npbqJZfAHxZOPhI4BOJz4Ks5ha+TcYEcSTh33qQ=" + }, + "remote_patch_strip": 1 } } }, @@ -665,11 +674,11 @@ "deps": { "rules_cc": "rules_cc@0.0.9", "rules_java": "rules_java@7.4.0", - "rules_license": "rules_license@0.0.7", - "rules_proto": "rules_proto@6.0.0-rc1", - "rules_python": "rules_python@0.32.2", + "rules_license": "rules_license@1.0.0", + "rules_proto": "rules_proto@6.0.0", + "rules_python": "rules_python@0.31.0", "buildozer": "buildozer@6.4.0.2", - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "com_google_protobuf": "protobuf@21.7", "zlib": "zlib@1.3", "build_bazel_apple_support": "apple_support@1.5.0", @@ -685,20 +694,38 @@ "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "bazel_tools": "bazel_tools@_" } }, - "platforms@0.0.7": { + "platforms@0.0.10": { "name": "platforms", - "version": "0.0.7", - "key": "platforms@0.0.7", + "version": "0.0.10", + "key": "platforms@0.0.10", "repoName": "platforms", "executionPlatformsToRegister": [], "toolchainsToRegister": [], - "extensionUsages": [], + "extensionUsages": [ + { + "extensionBzlFile": "@platforms//host:extension.bzl", + "extensionName": "host_platform", + "usingModule": "platforms@0.0.10", + "location": { + "file": "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel", + "line": 9, + "column": 30 + }, + "imports": { + "host_platform": "host_platform" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], "deps": { - "rules_license": "rules_license@0.0.7", + "rules_license": "rules_license@1.0.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -707,19 +734,19 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" + "https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz" ], - "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", + "integrity": "sha256-IY7+juc20mo1cmY7N0olPAErcW2K8MB+hC6C8jigp+4=", "strip_prefix": "", "remote_patches": {}, "remote_patch_strip": 0 } } }, - "bazel_features@1.9.1": { + "bazel_features@1.18.0": { "name": "bazel_features", - "version": "1.9.1", - "key": "bazel_features@1.9.1", + "version": "1.18.0", + "key": "bazel_features@1.18.0", "repoName": "bazel_features", "executionPlatformsToRegister": [], "toolchainsToRegister": [], @@ -727,9 +754,9 @@ { "extensionBzlFile": "@bazel_features//private:extensions.bzl", "extensionName": "version_extension", - "usingModule": "bazel_features@1.9.1", + "usingModule": "bazel_features@1.18.0", "location": { - "file": "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel", + "file": "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel", "line": 15, "column": 24 }, @@ -753,77 +780,29 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazel-contrib/bazel_features/releases/download/v1.9.1/bazel_features-v1.9.1.tar.gz" + "https://github.com/bazel-contrib/bazel_features/releases/download/v1.18.0/bazel_features-v1.18.0.tar.gz" ], - "integrity": "sha256-13h9oomn+0lzUiEa0gDsn2mIIqngdXpJdv2fcT/zcrM=", - "strip_prefix": "bazel_features-1.9.1", + "integrity": "sha256-tLFFwZ4I/Ugzf1PDg9tGOY0KgQACkH/wxZB2LZJuBb4=", + "strip_prefix": "bazel_features-1.18.0", "remote_patches": { - "https://bcr.bazel.build/modules/bazel_features/1.9.1/patches/module_dot_bazel_version.patch": "sha256-a2ofwS5r2Qq+WxzVa7sLbRXhfT3JoYxSlUVQH/nL454=" + "https://bcr.bazel.build/modules/bazel_features/1.18.0/patches/module_dot_bazel_version.patch": "sha256-CgAejEjO5cd6yZaXlzgBSZytWKKYeDU+pHbhYscTw4o=" }, "remote_patch_strip": 1 } } }, - "rules_cc@0.0.9": { - "name": "rules_cc", - "version": "0.0.9", - "key": "rules_cc@0.0.9", - "repoName": "rules_cc", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_cc_toolchains//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", - "extensionName": "cc_configure_extension", - "usingModule": "rules_cc@0.0.9", - "location": { - "file": "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel", - "line": 9, - "column": 29 - }, - "imports": { - "local_config_cc_toolchains": "local_config_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" - ], - "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", - "strip_prefix": "rules_cc-0.0.9", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" - }, - "remote_patch_strip": 0 - } - } - }, - "rules_proto@6.0.0-rc1": { + "rules_proto@6.0.0": { "name": "rules_proto", - "version": "6.0.0-rc1", - "key": "rules_proto@6.0.0-rc1", + "version": "6.0.0", + "key": "rules_proto@6.0.0", "repoName": "rules_proto", "executionPlatformsToRegister": [], "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "rules_license": "rules_license@0.0.7", + "rules_license": "rules_license@1.0.0", "bazel_skylib": "bazel_skylib@1.6.1", + "bazel_features": "bazel_features@1.18.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -832,12 +811,12 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0-rc1/rules_proto-6.0.0-rc1.tar.gz" + "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0/rules_proto-6.0.0.tar.gz" ], - "integrity": "sha256-kEqAl/rkKmkMjgjYBSEOQMzLBp9fmg9nJ89PqnvtLJw=", - "strip_prefix": "rules_proto-6.0.0-rc1", + "integrity": "sha256-MD6G5yKlIPbzJqULQc/Ba5j+bRlVzkZkKlt6Z8EcD10=", + "strip_prefix": "rules_proto-6.0.0", "remote_patches": { - "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/patches/module_dot_bazel_version.patch": "sha256-OepRECTunWiz3WREvMK/pOvpt/HRZ6g87fKfokcnQGE=" + "https://bcr.bazel.build/modules/rules_proto/6.0.0/patches/module_dot_bazel_version.patch": "sha256-fjQjxMdkMeumhvx9JdFSYeHH+Ex4TaTXNFMi554NF8E=" }, "remote_patch_strip": 1 } @@ -895,9 +874,9 @@ ], "deps": { "bazel_skylib": "bazel_skylib@1.6.1", - "rules_python": "rules_python@0.32.2", + "rules_python": "rules_python@0.31.0", "rules_cc": "rules_cc@0.0.9", - "rules_proto": "rules_proto@6.0.0-rc1", + "rules_proto": "rules_proto@6.0.0", "rules_java": "rules_java@7.4.0", "rules_pkg": "rules_pkg@0.7.0", "com_google_abseil": "abseil-cpp@20211102.0", @@ -927,76 +906,53 @@ } } }, - "rules_java@7.4.0": { - "name": "rules_java", - "version": "7.4.0", - "key": "rules_java@7.4.0", - "repoName": "rules_java", + "rules_license@1.0.0": { + "name": "rules_license", + "version": "1.0.0", + "key": "rules_license@1.0.0", + "repoName": "rules_license", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/rules_license/releases/download/1.0.0/rules_license-1.0.0.tar.gz" + ], + "integrity": "sha256-JtQCH2iY4juC75UweDid1JrCtWGKxWSt5O+HzO0Uezg=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, + "rules_shell@0.2.0": { + "name": "rules_shell", + "version": "0.2.0", + "key": "rules_shell@0.2.0", + "repoName": "rules_shell", "executionPlatformsToRegister": [], "toolchainsToRegister": [ - "//toolchains:all", - "@local_jdk//:runtime_toolchain_definition", - "@local_jdk//:bootstrap_runtime_toolchain_definition", - "@remotejdk11_linux_toolchain_config_repo//:all", - "@remotejdk11_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk11_linux_ppc64le_toolchain_config_repo//:all", - "@remotejdk11_linux_s390x_toolchain_config_repo//:all", - "@remotejdk11_macos_toolchain_config_repo//:all", - "@remotejdk11_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk11_win_toolchain_config_repo//:all", - "@remotejdk11_win_arm64_toolchain_config_repo//:all", - "@remotejdk17_linux_toolchain_config_repo//:all", - "@remotejdk17_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk17_linux_ppc64le_toolchain_config_repo//:all", - "@remotejdk17_linux_s390x_toolchain_config_repo//:all", - "@remotejdk17_macos_toolchain_config_repo//:all", - "@remotejdk17_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk17_win_toolchain_config_repo//:all", - "@remotejdk17_win_arm64_toolchain_config_repo//:all", - "@remotejdk21_linux_toolchain_config_repo//:all", - "@remotejdk21_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk21_macos_toolchain_config_repo//:all", - "@remotejdk21_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk21_win_toolchain_config_repo//:all" + "@local_config_shell//:all" ], "extensionUsages": [ { - "extensionBzlFile": "@rules_java//java:extensions.bzl", - "extensionName": "toolchains", - "usingModule": "rules_java@7.4.0", + "extensionBzlFile": "@rules_shell//shell/private/extensions:sh_configure.bzl", + "extensionName": "sh_configure", + "usingModule": "rules_shell@0.2.0", "location": { - "file": "https://bcr.bazel.build/modules/rules_java/7.4.0/MODULE.bazel", - "line": 19, - "column": 27 + "file": "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel", + "line": 10, + "column": 29 }, "imports": { - "remote_java_tools": "remote_java_tools", - "remote_java_tools_linux": "remote_java_tools_linux", - "remote_java_tools_windows": "remote_java_tools_windows", - "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", - "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64", - "local_jdk": "local_jdk", - "remotejdk11_linux_toolchain_config_repo": "remotejdk11_linux_toolchain_config_repo", - "remotejdk11_linux_aarch64_toolchain_config_repo": "remotejdk11_linux_aarch64_toolchain_config_repo", - "remotejdk11_linux_ppc64le_toolchain_config_repo": "remotejdk11_linux_ppc64le_toolchain_config_repo", - "remotejdk11_linux_s390x_toolchain_config_repo": "remotejdk11_linux_s390x_toolchain_config_repo", - "remotejdk11_macos_toolchain_config_repo": "remotejdk11_macos_toolchain_config_repo", - "remotejdk11_macos_aarch64_toolchain_config_repo": "remotejdk11_macos_aarch64_toolchain_config_repo", - "remotejdk11_win_toolchain_config_repo": "remotejdk11_win_toolchain_config_repo", - "remotejdk11_win_arm64_toolchain_config_repo": "remotejdk11_win_arm64_toolchain_config_repo", - "remotejdk17_linux_toolchain_config_repo": "remotejdk17_linux_toolchain_config_repo", - "remotejdk17_linux_aarch64_toolchain_config_repo": "remotejdk17_linux_aarch64_toolchain_config_repo", - "remotejdk17_linux_ppc64le_toolchain_config_repo": "remotejdk17_linux_ppc64le_toolchain_config_repo", - "remotejdk17_linux_s390x_toolchain_config_repo": "remotejdk17_linux_s390x_toolchain_config_repo", - "remotejdk17_macos_toolchain_config_repo": "remotejdk17_macos_toolchain_config_repo", - "remotejdk17_macos_aarch64_toolchain_config_repo": "remotejdk17_macos_aarch64_toolchain_config_repo", - "remotejdk17_win_toolchain_config_repo": "remotejdk17_win_toolchain_config_repo", - "remotejdk17_win_arm64_toolchain_config_repo": "remotejdk17_win_arm64_toolchain_config_repo", - "remotejdk21_linux_toolchain_config_repo": "remotejdk21_linux_toolchain_config_repo", - "remotejdk21_linux_aarch64_toolchain_config_repo": "remotejdk21_linux_aarch64_toolchain_config_repo", - "remotejdk21_macos_toolchain_config_repo": "remotejdk21_macos_toolchain_config_repo", - "remotejdk21_macos_aarch64_toolchain_config_repo": "remotejdk21_macos_aarch64_toolchain_config_repo", - "remotejdk21_win_toolchain_config_repo": "remotejdk21_win_toolchain_config_repo" + "local_config_shell": "local_config_shell" }, "devImports": [], "tags": [], @@ -1005,11 +961,9 @@ } ], "deps": { - "platforms": "platforms@0.0.7", - "rules_cc": "rules_cc@0.0.9", + "bazel_features": "bazel_features@1.18.0", "bazel_skylib": "bazel_skylib@1.6.1", - "rules_proto": "rules_proto@6.0.0-rc1", - "rules_license": "rules_license@0.0.7", + "platforms": "platforms@0.0.10", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1018,24 +972,149 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_java/releases/download/7.4.0/rules_java-7.4.0.tar.gz" + "https://github.com/bazelbuild/rules_shell/releases/download/v0.2.0/rules_shell-v0.2.0.tar.gz" ], - "integrity": "sha256-l27wi0nJKXQfIBeQ5Z44B8cq2B9CjIvJU82+/1/tFes=", - "strip_prefix": "", - "remote_patches": {}, + "integrity": "sha256-QQ6P8y4Bi579J0NQfnWVwm4mKFZ8QiJEEf9TO1fSfCg=", + "strip_prefix": "rules_shell-0.2.0", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_shell/0.2.0/patches/module_dot_bazel_version.patch": "sha256-bv3DFdWeINNaHKWkywFQPg7aVmCHZI2OZccz4nhABkw=" + }, + "remote_patch_strip": 1 + } + } + }, + "rules_cc@0.0.9": { + "name": "rules_cc", + "version": "0.0.9", + "key": "rules_cc@0.0.9", + "repoName": "rules_cc", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "@local_config_cc_toolchains//:all" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", + "extensionName": "cc_configure_extension", + "usingModule": "rules_cc@0.0.9", + "location": { + "file": "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel", + "line": 9, + "column": 29 + }, + "imports": { + "local_config_cc_toolchains": "local_config_cc_toolchains" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "platforms": "platforms@0.0.10", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" + ], + "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", + "strip_prefix": "rules_cc-0.0.9", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" + }, "remote_patch_strip": 0 } } }, - "rules_license@0.0.7": { - "name": "rules_license", - "version": "0.0.7", - "key": "rules_license@0.0.7", - "repoName": "rules_license", + "rules_java@7.4.0": { + "name": "rules_java", + "version": "7.4.0", + "key": "rules_java@7.4.0", + "repoName": "rules_java", "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], + "toolchainsToRegister": [ + "//toolchains:all", + "@local_jdk//:runtime_toolchain_definition", + "@local_jdk//:bootstrap_runtime_toolchain_definition", + "@remotejdk11_linux_toolchain_config_repo//:all", + "@remotejdk11_linux_aarch64_toolchain_config_repo//:all", + "@remotejdk11_linux_ppc64le_toolchain_config_repo//:all", + "@remotejdk11_linux_s390x_toolchain_config_repo//:all", + "@remotejdk11_macos_toolchain_config_repo//:all", + "@remotejdk11_macos_aarch64_toolchain_config_repo//:all", + "@remotejdk11_win_toolchain_config_repo//:all", + "@remotejdk11_win_arm64_toolchain_config_repo//:all", + "@remotejdk17_linux_toolchain_config_repo//:all", + "@remotejdk17_linux_aarch64_toolchain_config_repo//:all", + "@remotejdk17_linux_ppc64le_toolchain_config_repo//:all", + "@remotejdk17_linux_s390x_toolchain_config_repo//:all", + "@remotejdk17_macos_toolchain_config_repo//:all", + "@remotejdk17_macos_aarch64_toolchain_config_repo//:all", + "@remotejdk17_win_toolchain_config_repo//:all", + "@remotejdk17_win_arm64_toolchain_config_repo//:all", + "@remotejdk21_linux_toolchain_config_repo//:all", + "@remotejdk21_linux_aarch64_toolchain_config_repo//:all", + "@remotejdk21_macos_toolchain_config_repo//:all", + "@remotejdk21_macos_aarch64_toolchain_config_repo//:all", + "@remotejdk21_win_toolchain_config_repo//:all" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@rules_java//java:extensions.bzl", + "extensionName": "toolchains", + "usingModule": "rules_java@7.4.0", + "location": { + "file": "https://bcr.bazel.build/modules/rules_java/7.4.0/MODULE.bazel", + "line": 19, + "column": 27 + }, + "imports": { + "remote_java_tools": "remote_java_tools", + "remote_java_tools_linux": "remote_java_tools_linux", + "remote_java_tools_windows": "remote_java_tools_windows", + "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", + "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64", + "local_jdk": "local_jdk", + "remotejdk11_linux_toolchain_config_repo": "remotejdk11_linux_toolchain_config_repo", + "remotejdk11_linux_aarch64_toolchain_config_repo": "remotejdk11_linux_aarch64_toolchain_config_repo", + "remotejdk11_linux_ppc64le_toolchain_config_repo": "remotejdk11_linux_ppc64le_toolchain_config_repo", + "remotejdk11_linux_s390x_toolchain_config_repo": "remotejdk11_linux_s390x_toolchain_config_repo", + "remotejdk11_macos_toolchain_config_repo": "remotejdk11_macos_toolchain_config_repo", + "remotejdk11_macos_aarch64_toolchain_config_repo": "remotejdk11_macos_aarch64_toolchain_config_repo", + "remotejdk11_win_toolchain_config_repo": "remotejdk11_win_toolchain_config_repo", + "remotejdk11_win_arm64_toolchain_config_repo": "remotejdk11_win_arm64_toolchain_config_repo", + "remotejdk17_linux_toolchain_config_repo": "remotejdk17_linux_toolchain_config_repo", + "remotejdk17_linux_aarch64_toolchain_config_repo": "remotejdk17_linux_aarch64_toolchain_config_repo", + "remotejdk17_linux_ppc64le_toolchain_config_repo": "remotejdk17_linux_ppc64le_toolchain_config_repo", + "remotejdk17_linux_s390x_toolchain_config_repo": "remotejdk17_linux_s390x_toolchain_config_repo", + "remotejdk17_macos_toolchain_config_repo": "remotejdk17_macos_toolchain_config_repo", + "remotejdk17_macos_aarch64_toolchain_config_repo": "remotejdk17_macos_aarch64_toolchain_config_repo", + "remotejdk17_win_toolchain_config_repo": "remotejdk17_win_toolchain_config_repo", + "remotejdk17_win_arm64_toolchain_config_repo": "remotejdk17_win_arm64_toolchain_config_repo", + "remotejdk21_linux_toolchain_config_repo": "remotejdk21_linux_toolchain_config_repo", + "remotejdk21_linux_aarch64_toolchain_config_repo": "remotejdk21_linux_aarch64_toolchain_config_repo", + "remotejdk21_macos_toolchain_config_repo": "remotejdk21_macos_toolchain_config_repo", + "remotejdk21_macos_aarch64_toolchain_config_repo": "remotejdk21_macos_aarch64_toolchain_config_repo", + "remotejdk21_win_toolchain_config_repo": "remotejdk21_win_toolchain_config_repo" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], "deps": { + "platforms": "platforms@0.0.10", + "rules_cc": "rules_cc@0.0.9", + "bazel_skylib": "bazel_skylib@1.6.1", + "rules_proto": "rules_proto@6.0.0", + "rules_license": "rules_license@1.0.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1044,9 +1123,9 @@ "ruleClassName": "http_archive", "attributes": { "urls": [ - "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz" + "https://github.com/bazelbuild/rules_java/releases/download/7.4.0/rules_java-7.4.0.tar.gz" ], - "integrity": "sha256-RTHezLkTY5ww5cdRKgVNXYdWmNrrddjPkPKEN1/nw2A=", + "integrity": "sha256-l27wi0nJKXQfIBeQ5Z44B8cq2B9CjIvJU82+/1/tFes=", "strip_prefix": "", "remote_patches": {}, "remote_patch_strip": 0 @@ -1128,7 +1207,7 @@ "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "rules_cc": "rules_cc@0.0.9", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -1181,7 +1260,7 @@ ], "deps": { "bazel_skylib": "bazel_skylib@1.6.1", - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1208,9 +1287,9 @@ "toolchainsToRegister": [], "extensionUsages": [], "deps": { - "rules_python": "rules_python@0.32.2", + "rules_python": "rules_python@0.31.0", "bazel_skylib": "bazel_skylib@1.6.1", - "rules_license": "rules_license@0.0.7", + "rules_license": "rules_license@1.0.0", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1240,7 +1319,7 @@ "extensionUsages": [], "deps": { "rules_cc": "rules_cc@0.0.9", - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1270,10 +1349,10 @@ "extensionUsages": [], "deps": { "bazel_skylib": "bazel_skylib@1.6.1", - "rules_proto": "rules_proto@6.0.0-rc1", + "rules_proto": "rules_proto@6.0.0", "com_google_protobuf": "protobuf@21.7", "com_google_absl": "abseil-cpp@20211102.0", - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" }, @@ -1387,7 +1466,7 @@ "extensionUsages": [], "deps": { "com_google_absl": "abseil-cpp@20211102.0", - "platforms": "platforms@0.0.7", + "platforms": "platforms@0.0.10", "rules_cc": "rules_cc@0.0.9", "bazel_tools": "bazel_tools@_", "local_config_platform": "local_config_platform@_" @@ -1529,745 +1608,29 @@ "recordedRepoMappingEntries": [] } }, - "@@gazelle~//:extensions.bzl%go_deps": { + "@@buildozer~//:buildozer_binary.bzl%buildozer_binary": { "general": { - "bzlTransitiveDigest": "Mvn5AAcPCYGfDLXuggkKZJaddA+KvF8zwG9bh4qGgu8=", - "recordedFileInputs": { - "@@//go.mod": "0c277d9255625d22ad237e281eb5bda22a6ba9a22c6e18f11bdee0e2d3a91791", - "@@rules_go~//go.mod": "a7143f329c2a3e0b983ce74a96c0c25b0d0c59d236d75f7e1b069aadd988d55e", - "@@gazelle~//go.sum": "afb3c20626470bff206a91f35b0994f514f7a05ca44d9105f5ccb84e0d3ca197", - "@@//go.sum": "1c1682f15fa617d06478571894c7424bf2a85052d70aa0b31d6d305430b68fc5", - "@@rules_go~//go.sum": "022d36c9ebcc7b5dee1e9b85b3da9c9f3a529ee6f979946d66e4955b8d54614a", - "@@gazelle~//go.mod": "e915e3f980bea175c80cc30fa7433e69f1251a9ce03046579d7b24588a93e75f" - }, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "org_golang_x_tools_go_vcs": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/tools/go/vcs", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:cOIJqWBl99H1dH5LWizPa+0ImeeJq3t3cJjaeOWUAL4=", - "replace": "", - "version": "v0.1.0-deprecated" - } - }, - "com_github_ghodss_yaml": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/ghodss/yaml", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=", - "replace": "", - "version": "v1.0.0" - } - }, - "com_github_fsnotify_fsnotify": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/fsnotify/fsnotify", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=", - "replace": "", - "version": "v1.6.0" - } - }, - "com_github_bmatcuk_doublestar_v4": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/bmatcuk/doublestar/v4", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I=", - "replace": "", - "version": "v4.6.1" - } - }, - "com_github_pmezard_go_difflib": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/pmezard/go-difflib", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=", - "replace": "", - "version": "v1.0.0" - } - }, - "com_github_davecgh_go_spew": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/davecgh/go-spew", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=", - "replace": "", - "version": "v1.1.1" - } - }, - "org_golang_x_tools": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/tools", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo=", - "replace": "", - "version": "v0.9.1" - } - }, - "com_github_bazelbuild_buildtools": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/bazelbuild/buildtools", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:HTepWP/jhtWTC1gvK0RnvKCgjh4gLqiwaOwGozAXcbw=", - "replace": "", - "version": "v0.0.0-20231103205921-433ea8554e82" - } - }, - "org_golang_x_net": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/net", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0=", - "replace": "", - "version": "v0.0.0-20210405180319-a5a99cb37ef4" - } - }, - "org_golang_google_genproto": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "google.golang.org/genproto", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=", - "replace": "", - "version": "v0.0.0-20200526211855-cb27e3aa2013" - } - }, - "com_github_gogo_protobuf": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/gogo/protobuf", - "build_directives": [ - "gazelle:proto disable" - ], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=", - "replace": "", - "version": "v1.3.2" - } - }, - "com_github_smacker_go_tree_sitter": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/smacker/go-tree-sitter", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:7QZKUmQfnxncZIJGyvX8M8YeMfn8kM10j3J/2KwVTN4=", - "replace": "", - "version": "v0.0.0-20240422154435-0628b34cbf9c" - } - }, - "com_github_stretchr_testify": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/stretchr/testify", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=", - "replace": "", - "version": "v1.9.0" - } - }, - "in_gopkg_yaml_v2": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "gopkg.in/yaml.v2", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=", - "replace": "", - "version": "v2.4.0" - } - }, - "org_golang_x_sync": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/sync", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=", - "replace": "", - "version": "v0.3.0" - } - }, - "com_github_golang_mock": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/golang/mock", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=", - "replace": "", - "version": "v1.6.0" - } - }, - "org_golang_google_grpc": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "google.golang.org/grpc", - "build_directives": [ - "gazelle:proto disable" - ], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:fPVVDxY9w++VjTZsYvXWqEf9Rqar/e+9zYfxKK+W+YU=", - "replace": "", - "version": "v1.50.0" - } - }, - "com_github_google_go_cmp": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/google/go-cmp", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=", - "replace": "", - "version": "v0.5.9" - } - }, - "org_golang_x_text": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/text", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=", - "replace": "", - "version": "v0.3.3" - } - }, - "org_golang_google_protobuf": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "google.golang.org/protobuf", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=", - "replace": "", - "version": "v1.28.0" - } - }, - "com_github_emirpasic_gods": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/emirpasic/gods", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=", - "replace": "", - "version": "v1.18.1" - } - }, - "org_golang_x_mod": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/mod", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=", - "replace": "", - "version": "v0.12.0" - } - }, - "in_gopkg_yaml_v3": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "gopkg.in/yaml.v3", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=", - "replace": "", - "version": "v3.0.1" - } - }, - "com_github_golang_protobuf": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "github.com/golang/protobuf", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=", - "replace": "", - "version": "v1.5.2" - } - }, - "bazel_gazelle_go_repository_config": { - "bzlFile": "@@gazelle~//internal/bzlmod:go_deps.bzl", - "ruleClassName": "_go_repository_config", - "attributes": { - "importpaths": { - "@gazelle~": "github.com/bazelbuild/bazel-gazelle", - "com_github_bazelbuild_buildtools": "github.com/bazelbuild/buildtools", - "@rules_go~": "github.com/bazelbuild/rules_go", - "com_github_bmatcuk_doublestar_v4": "github.com/bmatcuk/doublestar/v4", - "com_github_emirpasic_gods": "github.com/emirpasic/gods", - "com_github_ghodss_yaml": "github.com/ghodss/yaml", - "com_github_smacker_go_tree_sitter": "github.com/smacker/go-tree-sitter", - "com_github_stretchr_testify": "github.com/stretchr/testify", - "org_golang_x_sync": "golang.org/x/sync", - "in_gopkg_yaml_v2": "gopkg.in/yaml.v2", - "com_github_davecgh_go_spew": "github.com/davecgh/go-spew", - "com_github_google_go_cmp": "github.com/google/go-cmp", - "com_github_pmezard_go_difflib": "github.com/pmezard/go-difflib", - "org_golang_x_mod": "golang.org/x/mod", - "org_golang_x_sys": "golang.org/x/sys", - "org_golang_x_tools": "golang.org/x/tools", - "in_gopkg_yaml_v3": "gopkg.in/yaml.v3", - "com_github_gogo_protobuf": "github.com/gogo/protobuf", - "com_github_golang_mock": "github.com/golang/mock", - "com_github_golang_protobuf": "github.com/golang/protobuf", - "org_golang_google_protobuf": "google.golang.org/protobuf", - "org_golang_x_net": "golang.org/x/net", - "org_golang_x_text": "golang.org/x/text", - "org_golang_google_genproto": "google.golang.org/genproto", - "org_golang_google_grpc": "google.golang.org/grpc", - "com_github_fsnotify_fsnotify": "github.com/fsnotify/fsnotify", - "org_golang_x_tools_go_vcs": "golang.org/x/tools/go/vcs" - }, - "module_names": { - "@rules_go~": "rules_go", - "@gazelle~": "gazelle" - }, - "build_naming_conventions": {} - } - }, - "org_golang_x_sys": { - "bzlFile": "@@gazelle~//internal:go_repository.bzl", - "ruleClassName": "go_repository", - "attributes": { - "importpath": "golang.org/x/sys", - "build_directives": [], - "build_file_generation": "auto", - "patches": [], - "patch_args": [], - "sum": "h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=", - "replace": "", - "version": "v0.12.0" - } - } - }, - "moduleExtensionMetadata": { - "explicitRootModuleDirectDeps": [ - "com_github_bazelbuild_buildtools", - "com_github_bmatcuk_doublestar_v4", - "com_github_emirpasic_gods", - "com_github_ghodss_yaml", - "com_github_smacker_go_tree_sitter", - "com_github_stretchr_testify", - "org_golang_x_sync", - "in_gopkg_yaml_v2" - ], - "explicitRootModuleDirectDevDeps": [], - "useAllRepos": "NO", - "reproducible": false - }, - "recordedRepoMappingEntries": [ - [ - "gazelle~", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@gazelle~//internal/bzlmod:non_module_deps.bzl%non_module_deps": { - "general": { - "bzlTransitiveDigest": "idtJXxcHUd75fcvggtK/s6naCFjcaysxF0U5OKBm2LE=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "bazel_gazelle_is_bazel_module": { - "bzlFile": "@@gazelle~//internal:is_bazel_module.bzl", - "ruleClassName": "is_bazel_module", - "attributes": { - "is_bazel_module": true - } - }, - "bazel_gazelle_go_repository_tools": { - "bzlFile": "@@gazelle~//internal:go_repository_tools.bzl", - "ruleClassName": "go_repository_tools", - "attributes": { - "go_cache": "@@gazelle~~non_module_deps~bazel_gazelle_go_repository_cache//:go.env" - } - }, - "bazel_gazelle_go_repository_cache": { - "bzlFile": "@@gazelle~//internal:go_repository_cache.bzl", - "ruleClassName": "go_repository_cache", - "attributes": { - "go_sdk_name": "@rules_go~~go_sdk~go_default_sdk", - "go_env": {} - } - } - }, - "recordedRepoMappingEntries": [ - [ - "gazelle~", - "bazel_gazelle_go_repository_cache", - "gazelle~~non_module_deps~bazel_gazelle_go_repository_cache" - ], - [ - "gazelle~", - "go_host_compatible_sdk_label", - "rules_go~~go_sdk~go_host_compatible_sdk_label" - ], - [ - "rules_go~~go_sdk~go_host_compatible_sdk_label", - "go_default_sdk", - "rules_go~~go_sdk~go_default_sdk" - ] - ] - } - }, - "@@rules_go~//go:extensions.bzl%go_sdk": { - "general": { - "bzlTransitiveDigest": "eGDLbciJngLG8USN6/HoLZ91MLuFliA9P4tEvCXvuec=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "go_default_sdk": { - "bzlFile": "@@rules_go~//go/private:sdk.bzl", - "ruleClassName": "go_download_sdk_rule", - "attributes": { - "goos": "", - "goarch": "", - "sdks": {}, - "urls": [ - "https://dl.google.com/go/{}" - ], - "version": "1.20.2" - } - }, - "go_host_compatible_sdk_label": { - "bzlFile": "@@rules_go~//go/private:extensions.bzl", - "ruleClassName": "host_compatible_toolchain", - "attributes": { - "toolchain": "@go_default_sdk//:ROOT" - } - }, - "go_toolchains": { - "bzlFile": "@@rules_go~//go/private:sdk.bzl", - "ruleClassName": "go_multiple_toolchains", - "attributes": { - "prefixes": [ - "_0000_go_default_sdk_" - ], - "geese": [ - "" - ], - "goarchs": [ - "" - ], - "sdk_repos": [ - "go_default_sdk" - ], - "sdk_types": [ - "remote" - ], - "sdk_versions": [ - "1.20.2" - ] - } - } - }, - "recordedRepoMappingEntries": [ - [ - "rules_go~", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@rules_go~//go/private:extensions.bzl%non_module_dependencies": { - "general": { - "bzlTransitiveDigest": "GXCPP6l+bsdqcRscjGNCRds6cxpRP2wigCJx3uwfGn0=", + "bzlTransitiveDigest": "EleDU/FQ1+e/RgkW3aIDmdaxZEthvoWQhsqFTxiSgMI=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, "generatedRepoSpecs": { - "bazel_skylib": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz" - ], - "sha256": "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa", - "strip_prefix": "" - } - }, - "com_github_gogo_protobuf": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/gogo/protobuf/archive/refs/tags/v1.3.2.zip", - "https://github.com/gogo/protobuf/archive/refs/tags/v1.3.2.zip" - ], - "sha256": "f89f8241af909ce3226562d135c25b28e656ae173337b3e58ede917aa26e1e3c", - "strip_prefix": "protobuf-1.3.2", - "patches": [ - "@@rules_go~//third_party:com_github_gogo_protobuf-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] - } - }, - "org_golang_x_xerrors": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/golang/xerrors/archive/04be3eba64a22a838cdb17b8dca15a52871c08b4.zip", - "https://github.com/golang/xerrors/archive/04be3eba64a22a838cdb17b8dca15a52871c08b4.zip" - ], - "sha256": "ffad2b06ef2e09d040da2ff08077865e99ab95d4d0451737fc8e33706bb01634", - "strip_prefix": "xerrors-04be3eba64a22a838cdb17b8dca15a52871c08b4", - "patches": [ - "@@rules_go~//third_party:org_golang_x_xerrors-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] - } - }, - "com_github_golang_protobuf": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/golang/protobuf/archive/refs/tags/v1.5.3.zip", - "https://github.com/golang/protobuf/archive/refs/tags/v1.5.3.zip" - ], - "sha256": "2dced4544ae5372281e20f1e48ca76368355a01b31353724718c4d6e3dcbb430", - "strip_prefix": "protobuf-1.5.3", - "patches": [ - "@@rules_go~//third_party:com_github_golang_protobuf-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] - } - }, - "io_bazel_rules_nogo": { - "bzlFile": "@@rules_go~//go/private:nogo.bzl", - "ruleClassName": "go_register_nogo", - "attributes": { - "nogo": "@io_bazel_rules_go//:default_nogo" - } - }, - "gogo_special_proto": { - "bzlFile": "@@rules_go~//proto:gogo.bzl", - "ruleClassName": "gogo_special_proto", - "attributes": {} - }, - "com_github_golang_mock": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/golang/mock/archive/refs/tags/v1.7.0-rc.1.zip", - "https://github.com/golang/mock/archive/refs/tags/v1.7.0-rc.1.zip" - ], - "patches": [ - "@@rules_go~//third_party:com_github_golang_mock-gazelle.patch" - ], - "patch_args": [ - "-p1" - ], - "sha256": "5359c78b0c1649cf7beb3b48ff8b1d1aaf0243b22ea4789aba94805280075d8e", - "strip_prefix": "mock-1.7.0-rc.1" - } - }, - "org_golang_google_protobuf": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "sha256": "cb1a05581c33b3705ede6c08edf9b9c1dbc579559ba30f532704c324e42bf801", - "urls": [ - "https://mirror.bazel.build/github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.30.0.zip", - "https://github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.30.0.zip" - ], - "strip_prefix": "protobuf-go-1.30.0", - "patches": [ - "@@rules_go~//third_party:org_golang_google_protobuf-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] - } - }, - "com_github_mwitkow_go_proto_validators": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/mwitkow/go-proto-validators/archive/refs/tags/v0.3.2.zip", - "https://github.com/mwitkow/go-proto-validators/archive/refs/tags/v0.3.2.zip" - ], - "sha256": "d8697f05a2f0eaeb65261b480e1e6035301892d9fc07ed945622f41b12a68142", - "strip_prefix": "go-proto-validators-0.3.2" - } - }, - "org_golang_x_tools": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/golang/tools/archive/refs/tags/v0.7.0.zip", - "https://github.com/golang/tools/archive/refs/tags/v0.7.0.zip" - ], - "sha256": "9f20a20f29f4008d797a8be882ef82b69cf8f7f2b96dbdfe3814c57d8280fa4b", - "strip_prefix": "tools-0.7.0", - "patches": [ - "@@rules_go~//third_party:org_golang_x_tools-deletegopls.patch", - "@@rules_go~//third_party:org_golang_x_tools-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] - } - }, - "org_golang_x_sys": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/golang/sys/archive/refs/tags/v0.8.0.zip", - "https://github.com/golang/sys/archive/refs/tags/v0.8.0.zip" - ], - "sha256": "58ef1f478ba923715bc493f2e0a431d4b2d428f1e3409f6acaac452945f6fd2f", - "strip_prefix": "sys-0.8.0", - "patches": [ - "@@rules_go~//third_party:org_golang_x_sys-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] - } - }, - "org_golang_google_genproto": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "urls": [ - "https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/e85fd2cbaebc35e54b279b5e9b1057db87dacd57.zip", - "https://github.com/googleapis/go-genproto/archive/e85fd2cbaebc35e54b279b5e9b1057db87dacd57.zip" - ], - "sha256": "da966a75fdc2f9d8006bc51e683490ff969ff637bbc030812cd9c5697e3a7cab", - "strip_prefix": "go-genproto-e85fd2cbaebc35e54b279b5e9b1057db87dacd57", - "patches": [ - "@@rules_go~//third_party:org_golang_google_genproto-gazelle.patch" - ], - "patch_args": [ - "-p1" - ] + "buildozer_binary": { + "bzlFile": "@@buildozer~//private:buildozer_binary.bzl", + "ruleClassName": "_buildozer_binary_repo", + "attributes": { + "sha256": { + "darwin-amd64": "d29e347ecd6b5673d72cb1a8de05bf1b06178dd229ff5eb67fad5100c840cc8e", + "darwin-arm64": "9b9e71bdbec5e7223871e913b65d12f6d8fa026684daf991f00e52ed36a6978d", + "linux-amd64": "8dfd6345da4e9042daa738d7fdf34f699c5dfce4632f7207956fceedd8494119", + "linux-arm64": "6559558fded658c8fa7432a9d011f7c4dcbac6b738feae73d2d5c352e5f605fa", + "windows-amd64": "e7f05bf847f7c3689dd28926460ce6e1097ae97380ac8e6ae7147b7b706ba19b" + }, + "version": "6.4.0" } } }, - "recordedRepoMappingEntries": [ - [ - "rules_go~", - "bazel_tools", - "bazel_tools" - ] - ] + "recordedRepoMappingEntries": [] } }, "@@rules_java~//java:extensions.bzl%toolchains": { @@ -2777,7 +2140,7 @@ }, "@@rules_python~//python/extensions:python.bzl%python": { "general": { - "bzlTransitiveDigest": "QIgyqZIIKqo2p1U8K64RdUfCLCKWDVsrlc/GfE1CJho=", + "bzlTransitiveDigest": "aGxTzdPZbohueOWJunHBtnR6sj5TpdulhPNQPtC0mG0=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -2786,13 +2149,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "3f7a0dd64fa292977c4da09e865ee504a48e55dbc2dbfd9ff4b991af891e4446", + "sha256": "49520e3ff494708020f306e30b0964f079170be83e956be4504f850557378a22", "patches": [], "platform": "s390x-unknown-linux-gnu", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-s390x-unknown-linux-gnu-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-s390x-unknown-linux-gnu-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-s390x-unknown-linux-gnu-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-s390x-unknown-linux-gnu-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2804,7 +2167,7 @@ "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", "ruleClassName": "host_toolchain", "attributes": { - "python_version": "3.11.9", + "python_version": "3.11.7", "user_repository_name": "python_3_11", "platforms": [ "aarch64-apple-darwin", @@ -2821,7 +2184,7 @@ "bzlFile": "@@rules_python~//python/private:toolchains_repo.bzl", "ruleClassName": "toolchain_aliases", "attributes": { - "python_version": "3.11.9", + "python_version": "3.11.7", "user_repository_name": "python_3_11", "platforms": [ "aarch64-apple-darwin", @@ -2838,13 +2201,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "b3a7199ac2615d75fb906e5ba556432efcf24baf8651fc70370d9f052d4069ee", + "sha256": "b102eaf865eb715aa98a8a2ef19037b6cc3ae7dfd4a632802650f29de635aa13", "patches": [], "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-aarch64-unknown-linux-gnu-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-aarch64-unknown-linux-gnu-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2856,13 +2219,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "7af7058f7c268b4d87ed7e08c2c7844ef8460863b3e679db3afdce8bb1eedfae", + "sha256": "b042c966920cf8465385ca3522986b12d745151a72c060991088977ca36d3883", "patches": [], "platform": "aarch64-apple-darwin", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-aarch64-apple-darwin-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-aarch64-apple-darwin-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-aarch64-apple-darwin-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-aarch64-apple-darwin-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2874,13 +2237,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "03f62d1e2d400c9662cdd12ae33a6f328c34ae8e2b872f8563a144834742bd6a", + "sha256": "b44e1b74afe75c7b19143413632c4386708ae229117f8f950c2094e9681d34c7", "patches": [], "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-ppc64le-unknown-linux-gnu-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-ppc64le-unknown-linux-gnu-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2892,13 +2255,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "9afd734f63a23783cf0257bef25c9231ffc80e7747486dc54cf72f325213fd15", + "sha256": "a0e615eef1fafdc742da0008425a9030b7ea68a4ae4e73ac557ef27b112836d4", "patches": [], "platform": "x86_64-apple-darwin", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-x86_64-apple-darwin-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-x86_64-apple-darwin-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2938,13 +2301,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "368474c69f476e7de4adaf50b61d9fcf6ec8b4db88cc43c5f71c860b3cd29c69", + "sha256": "67077e6fa918e4f4fd60ba169820b00be7c390c497bf9bc9cab2c255ea8e6f3e", "patches": [], "platform": "x86_64-pc-windows-msvc", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-x86_64-pc-windows-msvc-shared-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-x86_64-pc-windows-msvc-shared-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2956,13 +2319,13 @@ "bzlFile": "@@rules_python~//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "sha256": "78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5", + "sha256": "4a51ce60007a6facf64e5495f4cf322e311ba9f39a8cd3f3e4c026eae488e140", "patches": [], "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.11.9", - "release_filename": "20240415/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-unknown-linux-gnu-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2987,7 +2350,7 @@ }, "@@rules_python~//python/private/bzlmod:internal_deps.bzl%internal_deps": { "general": { - "bzlTransitiveDigest": "fDqhuyt2dROfO6qL4WlobPgyJCNlwP0fPCgW6fEpFMg=", + "bzlTransitiveDigest": "GCT33tTSmeE1L4tW7NKpfavsz3c8nKKfHS3mUw6SdGA=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -3056,8 +2419,8 @@ "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_archive", "attributes": { - "url": "https://files.pythonhosted.org/packages/0d/dc/38f4ce065e92c66f058ea7a368a9c5de4e702272b479c0992059f7693941/pip_tools-7.4.1-py3-none-any.whl", - "sha256": "4c690e5fbae2f21e87843e89c26191f0d9454f362d8acdbd695716493ec8b3a9", + "url": "https://files.pythonhosted.org/packages/e8/df/47e6267c6b5cdae867adbdd84b437393e6202ce4322de0a5e0b92960e1d6/pip_tools-7.3.0-py3-none-any.whl", + "sha256": "8717693288720a8c6ebd07149c93ab0be1fced0b5191df9e9decd3263e20d85e", "type": "zip", "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" } @@ -3096,8 +2459,8 @@ "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_archive", "attributes": { - "url": "https://files.pythonhosted.org/packages/e2/03/f3c8ba0a6b6e30d7d18c40faab90807c9bb5e9a1e3b2fe2008af624a9c97/build-1.2.1-py3-none-any.whl", - "sha256": "75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4", + "url": "https://files.pythonhosted.org/packages/58/91/17b00d5fac63d3dca605f1b8269ba3c65e98059e1fd99d00283e42a454f0/build-0.10.0-py3-none-any.whl", + "sha256": "af266720050a66c893a6096a2f410989eeac74ff9a68ba194b3f6473e8e26171", "type": "zip", "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:defs.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude in /python/pip_install/tools/bazel.py\n # to avoid non-determinism following pip install's behavior.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/* *\",\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" } diff --git a/gazelle/testdata/django_test/BUILD.out b/gazelle/testdata/django_test/BUILD.out index 36af589..bc9fda8 100644 --- a/gazelle/testdata/django_test/BUILD.out +++ b/gazelle/testdata/django_test/BUILD.out @@ -1,5 +1,5 @@ -load("@rules_python//python:defs.bzl", "py_library") load("@com_github_benchsci_rules_python_gazelle:defs.bzl", "django_test") +load("@rules_python//python:defs.bzl", "py_library") py_library( name = "__init__", diff --git a/go-tree-sitter.patch b/go-tree-sitter.patch new file mode 100644 index 0000000..6f8297c --- /dev/null +++ b/go-tree-sitter.patch @@ -0,0 +1,29 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index 6aa29a3..155129f 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -4,6 +4,12 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + # gazelle:prefix github.com/smacker/go-tree-sitter + gazelle(name = "gazelle") + ++filegroup( ++ name = "common", ++ srcs = ["alloc.c", "alloc.h", "api.h", "array.h"], ++ visibility = [":__subpackages__"], ++) ++ + go_library( + name = "go-tree-sitter", + srcs = [ +diff --git a/python/BUILD.bazel b/python/BUILD.bazel +index 04c7312..b184ac8 100644 +--- a/python/BUILD.bazel ++++ b/python/BUILD.bazel +@@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + go_library( + name = "python", + srcs = [ ++ "//:common", + "binding.go", + "parser.c", + "parser.h", diff --git a/go.mod b/go.mod index 0dc2166..2b4c51f 100644 --- a/go.mod +++ b/go.mod @@ -1,26 +1,26 @@ module github.com/benchsci/rules_python_gazelle/gazelle -go 1.19 +go 1.23.3 require ( - github.com/bazelbuild/bazel-gazelle v0.31.1 - github.com/bazelbuild/buildtools v0.0.0-20231103205921-433ea8554e82 - github.com/bazelbuild/rules_go v0.41.0 - github.com/bmatcuk/doublestar/v4 v4.6.1 + github.com/bazelbuild/bazel-gazelle v0.40.0 + github.com/bazelbuild/buildtools v0.0.0-20240918101019-be1c24cc9a44 + github.com/bazelbuild/rules_go v0.50.1 + github.com/bmatcuk/doublestar/v4 v4.7.1 github.com/emirpasic/gods v1.18.1 github.com/ghodss/yaml v1.0.0 - github.com/smacker/go-tree-sitter v0.0.0-20240422154435-0628b34cbf9c + github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 github.com/stretchr/testify v1.9.0 - golang.org/x/sync v0.2.0 + golang.org/x/sync v0.8.0 gopkg.in/yaml.v2 v2.4.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/mod v0.10.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/tools v0.9.1 // indirect + golang.org/x/mod v0.21.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/tools/go/vcs v0.1.0-deprecated // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 46e0127..092fea4 100644 --- a/go.sum +++ b/go.sum @@ -1,112 +1,36 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/bazelbuild/bazel-gazelle v0.31.1 h1:ROyUyUHzoEdvoOs1e0haxJx1l5EjZX6AOqiKdVlaBbg= -github.com/bazelbuild/bazel-gazelle v0.31.1/go.mod h1:Ul0pqz50f5wxz0QNzsZ+mrEu4AVAVJZEB5xLnHgIG9c= -github.com/bazelbuild/buildtools v0.0.0-20231103205921-433ea8554e82 h1:HTepWP/jhtWTC1gvK0RnvKCgjh4gLqiwaOwGozAXcbw= -github.com/bazelbuild/buildtools v0.0.0-20231103205921-433ea8554e82/go.mod h1:689QdV3hBP7Vo9dJMmzhoYIyo/9iMhEmHkJcnaPRCbo= -github.com/bazelbuild/rules_go v0.41.0 h1:JzlRxsFNhlX+g4drDRPhIaU5H5LnI978wdMJ0vK4I+k= -github.com/bazelbuild/rules_go v0.41.0/go.mod h1:TMHmtfpvyfsxaqfL9WnahCsXMWDMICTw7XeK9yVb+YU= -github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= -github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/bazelbuild/bazel-gazelle v0.40.0 h1:SAYys3KRG5i3KTgQAvO423bLT1rQMSgqEKReMkM/CW0= +github.com/bazelbuild/bazel-gazelle v0.40.0/go.mod h1:xI42W5YdKQg0g3rj1jZfdW8j1UihNmvb5KwWDdHg2ec= +github.com/bazelbuild/buildtools v0.0.0-20240918101019-be1c24cc9a44 h1:FGzENZi+SX9I7h9xvMtRA3rel8hCEfyzSixteBgn7MU= +github.com/bazelbuild/buildtools v0.0.0-20240918101019-be1c24cc9a44/go.mod h1:PLNUetjLa77TCCziPsz0EI8a6CUxgC+1jgmWv0H25tg= +github.com/bazelbuild/rules_go v0.50.1 h1:/BUvuaB8MEiUA2oLPPCGtuw5V+doAYyiGTFyoSWlkrw= +github.com/bazelbuild/rules_go v0.50.1/go.mod h1:Dhcz716Kqg1RHNWos+N6MlXNkjNP2EwZQ0LukRKJfMs= +github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= +github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/smacker/go-tree-sitter v0.0.0-20240422154435-0628b34cbf9c h1:7QZKUmQfnxncZIJGyvX8M8YeMfn8kM10j3J/2KwVTN4= -github.com/smacker/go-tree-sitter v0.0.0-20240422154435-0628b34cbf9c/go.mod h1:q99oHDsbP0xRwmn7Vmob8gbSMNyvJ83OauXPSuHQuKE= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 h1:6C8qej6f1bStuePVkLSFxoU22XBS165D3klxlzRg8F4= +github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82/go.mod h1:xe4pgH49k4SsmkQq5OT8abwhWmnzkhpgnXeekbx2efw= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.starlark.net v0.0.0-20210223155950-e043a3d3c984/go.mod h1:t3mmBBPzAVvK0L0n1drDmrQsJ8FoIx4INCqVMTr/Zo0= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/tools/go/vcs v0.1.0-deprecated h1:cOIJqWBl99H1dH5LWizPa+0ImeeJq3t3cJjaeOWUAL4= +golang.org/x/tools/go/vcs v0.1.0-deprecated/go.mod h1:zUrvATBAvEI9535oC0yWYsLsHIV4Z7g63sNPVMtuBy8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/patches/BUILD b/patches/BUILD new file mode 100644 index 0000000..e69de29 diff --git a/patches/go-tree-sitter-python.patch b/patches/go-tree-sitter-python.patch new file mode 100644 index 0000000..b3b4081 --- /dev/null +++ b/patches/go-tree-sitter-python.patch @@ -0,0 +1,10 @@ +--- a/python/BUILD.bazel ++++ b/python/BUILD.bazel +@@ -3,6 +3,7 @@ + go_library( + name = "python", + srcs = [ ++ "//:common", + "binding.go", + "parser.c", + "parser.h", diff --git a/patches/go-tree-sitter.diff b/patches/go-tree-sitter.diff new file mode 100644 index 0000000..87b5266 --- /dev/null +++ b/patches/go-tree-sitter.diff @@ -0,0 +1,138 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 0000000..11a98b2 +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,80 @@ ++load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") ++ ++filegroup( ++ name = "common", ++ srcs = [ ++ "alloc.h", ++ "api.h", ++ "array.h", ++ ], ++ visibility = [":__subpackages__"], ++) ++ ++go_library( ++ name = "go-tree-sitter", ++ srcs = [ ++ "alloc.c", ++ "alloc.h", ++ "api.h", ++ "array.h", ++ "atomic.h", ++ "bindings.c", ++ "bindings.go", ++ "bindings.h", ++ "bits.h", ++ "clock.h", ++ "error_costs.h", ++ "get_changed_ranges.c", ++ "get_changed_ranges.h", ++ "host.h", ++ "iter.go", ++ "language.c", ++ "language.h", ++ "length.h", ++ "lexer.c", ++ "lexer.h", ++ "node.c", ++ "parser.c", ++ "parser.h", ++ "point.h", ++ "ptypes.h", ++ "query.c", ++ "reduce_action.h", ++ "reusable_node.h", ++ "stack.c", ++ "stack.h", ++ "subtree.c", ++ "subtree.h", ++ "test_grammar.go", ++ "tree.c", ++ "tree.h", ++ "tree_cursor.c", ++ "tree_cursor.h", ++ "umachine.h", ++ "unicode.h", ++ "urename.h", ++ "utf.h", ++ "utf16.h", ++ "utf8.h", ++ "wasm_store.c", ++ "wasm_store.h", ++ ], ++ cgo = True, ++ importpath = "github.com/smacker/go-tree-sitter", ++ visibility = ["//visibility:public"], ++) ++ ++go_test( ++ name = "go-tree-sitter_test", ++ srcs = [ ++ "bindings_test.go", ++ "example_test.go", ++ "predicates_test.go", ++ ], ++ embed = [":go-tree-sitter"], ++ deps = [ ++ "//golang", ++ "@com_github_stretchr_testify//assert:go_default_library", ++ "@com_github_stretchr_testify//require:go_default_library", ++ ], ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 0000000..8629309 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,14 @@ ++module( ++ name = "com_github_smacker_go_tree_sitter", ++ version = "0.0.1", ++) ++ ++bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go") ++bazel_dep(name = "gazelle", version = "0.31.0") ++ ++go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") ++go_deps.from_file(go_mod = "//:go.mod") ++use_repo( ++ go_deps, ++ "com_github_stretchr_testify", ++) +diff --git a/python/BUILD.bazel b/python/BUILD.bazel +new file mode 100644 +index 0000000..a89341d +--- /dev/null ++++ b/python/BUILD.bazel +@@ -0,0 +1,26 @@ ++load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") ++ ++go_library( ++ name = "python", ++ srcs = [ ++ "binding.go", ++ "parser.c", ++ "parser.h", ++ "scanner.c", ++ "//:common", ++ ], ++ cgo = True, ++ importpath = "github.com/smacker/go-tree-sitter/python", ++ visibility = ["//visibility:public"], ++ deps = ["//:go-tree-sitter"], ++) ++ ++go_test( ++ name = "python_test", ++ srcs = ["binding_test.go"], ++ deps = [ ++ ":python", ++ "//:go-tree-sitter", ++ "@com_github_stretchr_testify//assert:go_default_library", ++ ], ++) diff --git a/patches/go-tree-sitter.patch b/patches/go-tree-sitter.patch new file mode 100644 index 0000000..6b82ea3 --- /dev/null +++ b/patches/go-tree-sitter.patch @@ -0,0 +1,12 @@ +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -1,4 +1,9 @@ + load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") ++filegroup( ++ name = "common", ++ srcs = ["alloc.h", "api.h", "array.h"], ++ visibility = [":__subpackages__"], ++) + + go_library( + name = "go-tree-sitter",