This repository was archived by the owner on May 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 604
Add JavaInfo loading to protobuf.bzl #1325
Open
meteorcloudy
wants to merge
7
commits into
bufbuild:main
Choose a base branch
from
meteorcloudy:patch-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6d1406b
Add JavaInfo loading to protobuf.bzl
meteorcloudy 7e037e7
fix
meteorcloudy dacdc50
Add MODULE.bazel
meteorcloudy 41e92f4
ugprade versions
meteorcloudy 89df490
Remove version
meteorcloudy b15c095
Merge branch 'main' into patch-2
rodaine b8400dc
Merge branch 'main' into patch-2
rodaine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| module( | ||
| name = "protoc-gen-validate", | ||
| compatibility_level = 1, | ||
| repo_name = "com_envoyproxy_protoc_gen_validate", | ||
| ) | ||
|
|
||
| bazel_dep( | ||
| name = "bazel_skylib", | ||
| version = "1.8.1", | ||
| ) | ||
| bazel_dep( | ||
| name = "gazelle", | ||
| version = "0.46.0", | ||
| repo_name = "bazel_gazelle", | ||
| ) | ||
| bazel_dep( | ||
| name = "protobuf", | ||
| version = "33.0", | ||
| repo_name = "com_google_protobuf", | ||
| ) | ||
| bazel_dep( | ||
| name = "re2", | ||
| version = "2024-07-02.bcr.1", | ||
| repo_name = "com_googlesource_code_re2", | ||
| ) | ||
| bazel_dep( | ||
| name = "rules_cc", | ||
| version = "0.2.13", | ||
| ) | ||
| bazel_dep( | ||
| name = "rules_go", | ||
| version = "0.58.3", | ||
| repo_name = "io_bazel_rules_go", | ||
| ) | ||
| bazel_dep( | ||
| name = "rules_java", | ||
| version = "8.16.1", | ||
| ) | ||
| bazel_dep( | ||
| name = "rules_proto", | ||
| version = "7.1.0", | ||
| ) | ||
| bazel_dep( | ||
| name = "rules_python", | ||
| version = "1.6.0", | ||
| ) | ||
| # -- bazel_dep definitions -- # | ||
|
|
||
| go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") | ||
| go_sdk.download(version = "1.24.0") | ||
|
|
||
| go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") | ||
| go_deps.from_file(go_mod = "//:go.mod") | ||
| use_repo( | ||
| go_deps, | ||
| "com_github_iancoleman_strcase", | ||
| "com_github_lyft_protoc_gen_star_v2", | ||
| "org_golang_google_protobuf", | ||
| "org_golang_x_net", | ||
| ) | ||
|
|
||
| PYTHON_VERSIONS = [ | ||
| "3.9", | ||
| "3.10", | ||
| "3.11", | ||
| "3.12", | ||
| "3.13", | ||
| ] | ||
|
|
||
| python = use_extension("@rules_python//python/extensions:python.bzl", "python") | ||
|
|
||
| [ | ||
| python.toolchain( | ||
| is_default = python_version == PYTHON_VERSIONS[-1], | ||
| python_version = python_version, | ||
| ) | ||
| for python_version in PYTHON_VERSIONS | ||
| ] | ||
|
|
||
| pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") | ||
|
|
||
| [ | ||
| pip.parse( | ||
| hub_name = "pgv_pip_deps", | ||
| python_version = python_version, | ||
| requirements_lock = "//python:requirements.txt", | ||
| ) | ||
| for python_version in PYTHON_VERSIONS | ||
| ] | ||
|
|
||
| use_repo(pip, "pgv_pip_deps") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to update to 0.59.0, see bazelbuild/bazel-central-registry#6780