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 Dec 3, 2024
1 parent 6f70c65 commit 01171b7
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 1 deletion.
49 changes: 49 additions & 0 deletions modules/with_cfg.bzl/0.6.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module(
name = "with_cfg.bzl",
version = "0.6.1",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "platforms", version = "0.0.6")

bazel_dep(name = "aspect_bazel_lib", version = "1.34.0", dev_dependency = True)
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle")
bazel_dep(name = "rules_testing", version = "0.4.0", dev_dependency = True)
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.6.1", dev_dependency = True)
bazel_dep(name = "rules_proto", version = "6.0.0", dev_dependency = True)
bazel_dep(name = "toolchains_protoc", version = "0.3.0", dev_dependency = True)

protoc = use_extension(
"@toolchains_protoc//protoc:extensions.bzl",
"protoc",
dev_dependency = True,
)
protoc.toolchain(
# Creates a repository to satisfy well-known-types dependencies such as
# deps=["@com_google_protobuf//:any_proto"]
google_protobuf = "com_google_protobuf",
# Pin to any version of protoc
version = "v26.0",
)

protobuf_java_repos = use_extension(
"//tools:extensions.bzl",
"protobuf_java_repo",
dev_dependency = True,
)
use_repo(protobuf_java_repos, "protobuf_java")

register_toolchains(
"//docs/...",
dev_dependency = True,
)
12 changes: 12 additions & 0 deletions modules/with_cfg.bzl/0.6.1/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 = "with_cfg.bzl",
- version = "0.0.0",
+ version = "0.6.1",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.4.1")
28 changes: 28 additions & 0 deletions modules/with_cfg.bzl/0.6.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
bcr_test_module:
module_path: "examples"
matrix:
platform: ["debian10", "macos_arm64", "ubuntu2004"]
bazel: ["6.x", "7.x"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
bazel: ${{ bazel }}
test_targets:
- "//..."
run_windows_tests:
name: "Run test module"
platform: "windows"
bazel: ${{ bazel }}
test_targets:
- "//..."
# Running these tests on Windows requires non-standard Visual Studio
# components and tweaks to PATH.
- "-//cc_asan_test/..."
- "-//cc_asan_test_with_reset/..."
# Fails with:
# LAUNCHER ERROR: Cannot launch process: "C:/tools/msys64/usr/bin/bash.exe
# Reason: (error: 8): Not enough memory resources are available to process this command.
# TODO: Enable after https://github.com/bazelbuild/bazel/pull/23076.
- "-//sh/..."
- "-//args_location_expansion/..."
9 changes: 9 additions & 0 deletions modules/with_cfg.bzl/0.6.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-2D+ZrDnNmUCEjqEaUaYBWc8JzaK6MFRQNgQVUarnOrQ=",
"strip_prefix": "with_cfg.bzl-0.6.1",
"url": "https://github.com/fmeum/with_cfg.bzl/releases/download/v0.6.1/with_cfg.bzl-v0.6.1.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-8Sk/DjM1RrPrbCsqpjTQrEgWTVhFY1cI7f1eqzGFcSY="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/with_cfg.bzl/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"0.4.0",
"0.4.2",
"0.5.0",
"0.6.0"
"0.6.0",
"0.6.1"
],
"yanked_versions": {}
}

0 comments on commit 01171b7

Please sign in to comment.