Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: https://github.com/aspect-build/toolchains_protoc/releases/tag/v0.2.3 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Alex Eagle <alex@aspect.dev>
- Loading branch information
1 parent
79a6eca
commit 1420e92
Showing
5 changed files
with
91 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
"Bazel dependencies" | ||
|
||
module( | ||
name = "toolchains_protoc", | ||
version = "0.2.3", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.4.1") | ||
bazel_dep(name = "rules_proto", version = "6.0.0-rc2") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
|
||
protoc = use_extension("//protoc:extensions.bzl", "protoc") | ||
protoc.toolchain( | ||
google_protobuf = "com_google_protobuf", | ||
version = "v25.3", | ||
) | ||
use_repo(protoc, "com_google_protobuf", "toolchains_protoc_hub") | ||
|
||
register_toolchains("@toolchains_protoc_hub//:all") | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "1.32.1", dev_dependency = True) | ||
bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) | ||
bazel_dep(name = "aspect_rules_py", version = "0.7.1", dev_dependency = True) | ||
bazel_dep(name = "rules_java", version = "7.4.0", dev_dependency = True) | ||
bazel_dep(name = "rules_python", version = "0.31.0", dev_dependency = True) | ||
|
||
# # Update to include | ||
# https://github.com/bazelbuild/rules_python/pull/1577 | ||
git_override( | ||
module_name = "rules_python", | ||
commit = "3edcae33dcc43051ca6f200c2d0cb3692df79d03", | ||
remote = "https://github.com/bazelbuild/rules_python.git", | ||
) | ||
|
||
register_toolchains( | ||
"//examples/lang_toolchains:all", | ||
dev_dependency = True, | ||
) | ||
|
||
# Shows how a typical Python user fetches all the dependencies of their app, including the protobuf runtime | ||
pip = use_extension( | ||
"@rules_python//python/extensions:pip.bzl", | ||
"pip", | ||
dev_dependency = True, | ||
) | ||
pip.parse( | ||
hub_name = "pypi", | ||
python_version = "3.11", | ||
requirements_lock = "//examples/lang_toolchains:requirements.txt", | ||
) | ||
use_repo(pip, "pypi") |
14 changes: 14 additions & 0 deletions
14
modules/toolchains_protoc/0.2.3/patches/module_dot_bazel_version.patch
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,14 @@ | ||
=================================================================== | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -1,9 +1,9 @@ | ||
"Bazel dependencies" | ||
|
||
module( | ||
name = "toolchains_protoc", | ||
- version = "0.0.0", | ||
+ version = "0.2.3", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.4.1") |
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,12 @@ | ||
bcr_test_module: | ||
module_path: "e2e/smoke" | ||
matrix: | ||
platform: ["debian10", "macos", "ubuntu2004", "windows"] | ||
bazel: ["7.x"] | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
test_targets: | ||
- "//..." |
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 @@ | ||
{ | ||
"integrity": "sha256-o0ULvsy4njLONJj9Q0E8jDiggn7qwPDrs4TVvK8tlPg=", | ||
"strip_prefix": "toolchains_protoc-0.2.3", | ||
"url": "https://github.com/aspect-build/toolchains_protoc/releases/download/v0.2.3/toolchains_protoc-v0.2.3.tar.gz", | ||
"patches": { | ||
"module_dot_bazel_version.patch": "sha256-FxF2r3rn7FYLZmjVhNUAvIPpxTVYABXG/pP5SyVUYVI=" | ||
}, | ||
"patch_strip": 1 | ||
} |
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