Skip to content

Commit 1bfacbc

Browse files
committed
Make sure an RBE environment sees the full input.
Noticed when running in a remote build environment: bazel did not ship everything needed to run the script. Fixed the depset to be comprehensive Similar openmp, but that has already been fixed in bazelbuild/bazel-central-registry#8952 and we just need to fetch the new version. Signed-off-by: Henner Zeller <h.zeller@acm.org>
1 parent 8eade99 commit 1bfacbc

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ bazel_dep(name = "eigen", version = "3.4.0.bcr.3")
7878
bazel_dep(name = "fmt", version = "11.2.0.bcr.1")
7979
bazel_dep(name = "git", version = "2.54.0")
8080
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
81-
bazel_dep(name = "openmp", version = "21.1.5.bcr.1")
81+
bazel_dep(name = "openmp", version = "21.1.5.bcr.2")
8282
bazel_dep(name = "or-tools", version = "9.15")
8383
bazel_dep(name = "spdlog", version = "1.15.1")
8484
bazel_dep(name = "sv-lang", version = "10.0.1-20260316-f04e8156")

MODULE.bazel.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bazel/tcl_encode_or.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ def _tcl_encode_or_impl(ctx):
2323
outputs = [output_file],
2424
inputs = ctx.files.srcs,
2525
arguments = [args],
26-
tools = [ctx.executable._encode_script],
26+
tools = depset(
27+
direct = [ctx.executable._encode_script],
28+
transitive = [ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime.files] if ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime and ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime.files else [],
29+
),
2730
executable = ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime.interpreter,
2831
)
2932
return [DefaultInfo(files = depset([output_file]))]

0 commit comments

Comments
 (0)