Skip to content

Commit fdc74d8

Browse files
committed
disable locking macro on windows at first
1 parent 96684f1 commit fdc74d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/uv/private/lock.bzl

+4-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ def lock(*, name, srcs, out, args = [], env = None, **kwargs):
284284
locker_target = "{}.run".format(name)
285285
maybe_out = _maybe_file(out)
286286
out_new = out + ".new"
287-
target_compatible_with = kwargs.pop("target_compatible_with", []) if BZLMOD_ENABLED else ["@platforms//:incompatible"]
287+
target_compatible_with = kwargs.pop("target_compatible_with", select({
288+
"@platforms//os:windows": ["@platforms//:incompatible"],
289+
"//conditions:default": [],
290+
})) if BZLMOD_ENABLED else ["@platforms//:incompatible"]
288291

289292
_lock(
290293
name = name,

0 commit comments

Comments
 (0)