Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
publish-to-bcr-bot[bot] and fmeum authored Oct 14, 2024
1 parent eea6b21 commit 76b268f
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
32 changes: 32 additions & 0 deletions modules/bazel_env.bzl/0.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module(
name = "bazel_env.bzl",
version = "0.2.0",
bazel_compatibility = [">=7.0.2"],
)

bazel_dep(name = "bazel_skylib", version = "1.6.1")

bazel_dep(name = "stardoc", dev_dependency = True)
git_override(
module_name = "stardoc",
commit = "3baa5d1761970c6285d2ac9c3adccfaac42f54c5",
remote = "https://github.com/bazelbuild/stardoc.git",
)

bazel_dep(name = "rules_java", version = "7.5.0", dev_dependency = True)
bazel_dep(name = "rules_proto", version = "6.0.0", dev_dependency = True)
bazel_dep(name = "toolchains_protoc", version = "0.2.4", dev_dependency = True)

http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")

http_jar(
name = "protobuf_java",
dev_dependency = True,
integrity = "sha256-6Q2N25Y7IKlypqWbUJOt4rB8vlRsqzJ5qvQ4MmA4X1g=",
urls = ["https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.25.3/protobuf-java-3.25.3.jar"],
)

register_toolchains(
"//docs/...",
dev_dependency = True,
)
12 changes: 12 additions & 0 deletions modules/bazel_env.bzl/0.2.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,7 +1,7 @@
module(
name = "bazel_env.bzl",
- version = "0.0.0",
+ version = "0.2.0",
bazel_compatibility = [">=7.0.2"],
)

bazel_dep(name = "bazel_skylib", version = "1.6.1")
16 changes: 16 additions & 0 deletions modules/bazel_env.bzl/0.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bcr_test_module:
module_path: "examples"
matrix:
platform: ["debian10", "macos", "ubuntu2004"]
bazel: ["7.x"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
environment:
JAVA_TOOL_OPTIONS: ""
build_targets:
- "//..."
test_targets:
- "//..."
9 changes: 9 additions & 0 deletions modules/bazel_env.bzl/0.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-/G2ND1acvegpfJ2keQI2C2PhnMlBK7poKtJ2BxFVvLg=",
"strip_prefix": "bazel_env.bzl-0.2.0",
"url": "https://github.com/buildbuddy-io/bazel_env.bzl/releases/download/v0.2.0/bazel_env.bzl-v0.2.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-xW8c3ehtpdppCVKqwyNsmpa985vHSrZbuG1G1Wx2mH8="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/bazel_env.bzl/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"versions": [
"0.1.0",
"0.1.1",
"0.1.2"
"0.1.2",
"0.2.0"
],
"yanked_versions": {}
}

0 comments on commit 76b268f

Please sign in to comment.