Skip to content

Commit 3f7e4b6

Browse files
committed
Mark OCI container targets as Linux-only
The oci_load and multirun targets in images/ were missing target_compatible_with constraints, causing toolchain resolution failures on Windows (both x64 and ARM64). The oci_image target already had the Linux constraint but the load/multirun targets that depend on it did not. Made-with: Cursor
1 parent 921a4f1 commit 3f7e4b6

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

images/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ IMAGES = {
99
command(
1010
name = name,
1111
command = target,
12+
target_compatible_with = [
13+
"@platforms//os:linux",
14+
],
1215
)
1316
for (name, target) in IMAGES.items()
1417
]
1518

1619
multirun(
1720
name = "load_all",
1821
commands = IMAGES.keys(),
22+
target_compatible_with = [
23+
"@platforms//os:linux",
24+
],
1925
)

images/container-client-test/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,18 @@ oci_load(
3737
name = "load",
3838
image = ":image",
3939
repo_tags = ["cloudflare/workerd/container-client-test:latest"],
40+
target_compatible_with = [
41+
"@platforms//os:linux",
42+
],
4043
visibility = ["//visibility:public"],
4144
)
4245

4346
oci_load(
4447
name = "load-proxy-everything",
4548
image = "@proxy_everything",
4649
repo_tags = ["cloudflare/proxy-everything:main"],
50+
target_compatible_with = [
51+
"@platforms//os:linux",
52+
],
4753
visibility = ["//visibility:public"],
4854
)

0 commit comments

Comments
 (0)