This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
forked from bazelbuild/codelabs
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from aspect-build/proto_toolchain
Proto toolchain
- Loading branch information
Showing
3 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Test output information | ||
test --test_output=errors --test_summary=detailed | ||
|
||
# Allow resolving protoc from a pre-built toolchain | ||
common --incompatible_enable_proto_toolchain_resolution | ||
|
||
# Don't report when the root module's lower bound for a dependency happens to be less than the resolved version. | ||
# This is expected and should NOT prompt an engineer to update our lower bound to match. | ||
# WARNING: For repository 'aspect_bazel_lib', the root module requires module version [email protected], | ||
|
This file contains 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
This file contains 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,9 @@ | ||
load("@rules_proto//proto:defs.bzl", "proto_lang_toolchain") | ||
|
||
proto_lang_toolchain( | ||
name = "protoc_java_toolchain", | ||
command_line = "--java_out=%s", | ||
progress_message = "Generating Java proto_library %{label}", | ||
runtime = "@protobuf-java//jar", | ||
toolchain_type = "@rules_java//java/proto:toolchain_type", | ||
) |