Skip to content

Commit 0ec5d07

Browse files
committed
add missing workspace config
1 parent 82c7b7e commit 0ec5d07

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

tests/integration/local_toolchains/WORKSPACE

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ local_repository(
99

1010
load("@rules_python//python:repositories.bzl", "py_repositories")
1111

12-
py_repositories()
12+
py_repositories(
13+
transition_settings = [
14+
"@//:py",
15+
],
16+
)
1317

1418
load("@rules_python//python/local_toolchains:repos.bzl", "local_runtime_repo", "local_runtime_toolchains_repo")
1519

@@ -46,7 +50,26 @@ local_runtime_repo(
4650
# Step 2: Create toolchains for the runtimes
4751
local_runtime_toolchains_repo(
4852
name = "local_toolchains",
49-
runtimes = ["local_python3"],
53+
runtimes = [
54+
"local_python3",
55+
"repo_python3",
56+
],
57+
target_compatible_with = {
58+
"local_python3": [
59+
"HOST_CONSTRAINTS",
60+
],
61+
"repo_python3": [
62+
"HOST_CONSTRAINTS",
63+
],
64+
},
65+
target_settings = {
66+
"local_python3": [
67+
"@//:is_py_local",
68+
],
69+
"repo_python3": [
70+
"@//:is_py_repo",
71+
],
72+
},
5073
)
5174

5275
# Step 3: Register the toolchains

0 commit comments

Comments
 (0)