Skip to content

Commit 1178c63

Browse files
committed
try to skip runtime env on RBE
1 parent 98f4c8a commit 1178c63

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

tests/integration/local_toolchains/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
def _toolchain_version_condition_impl(ctx):
2-
runtime = ctx.toolchains["@rules_python//python:toolchain_type"].py_runtime
2+
runtime = ctx.toolchains["@rules_python//python:toolchain_type"].py3_runtime
33
version = (
44
runtime.interpreter_version_info.major,
55
runtime.interpreter_version_info.minor,

tests/runtime_env_toolchain/BUILD.bazel

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,26 @@ py_reconfig_test(
3030
CC_TOOLCHAIN,
3131
],
3232
main = "toolchain_runs_test.py",
33+
# Doesn't work -- doesn't have ConstraintValueInfo provider?
34+
#target_compatible_with = [
35+
# "@platforms//host",
36+
#],
37+
# Doesn't work -- not a valid select condition?
38+
#target_compatible_with = select({
39+
# "@platforms//host": [],
40+
# "//conditions:default": ["@platforms//:incompatible"],
41+
#}),
42+
##target_compatible_with = select({
43+
## ":is_host": [],
44+
## "//conditions:default": ["@platforms//:incompatible"],
45+
##}),
46+
tags = ["no-remote-exec"],
3347
deps = ["//python/runfiles"],
3448
)
49+
50+
config_setting(
51+
name = "is_host",
52+
constraint_values = [
53+
"@platforms//host:host",
54+
],
55+
)

0 commit comments

Comments
 (0)