Skip to content

Commit 6d23df0

Browse files
Restrict tweak_macinstaller_script genrule to run on macOS.
The genrule uses a script that performs macOS-specific version validation, so it must be executed on a macOS platform. #codehealth PiperOrigin-RevId: 854968970
1 parent 0679f6c commit 6d23df0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mac/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
load(
3131
"//:build_defs.bzl",
32+
"MOZC_TAGS",
3233
"mozc_macos_application",
3334
"mozc_macos_bundle",
3435
"mozc_objc_library",
@@ -434,6 +435,8 @@ genrule(
434435
" $(location //base:mozc_version_txt)" +
435436
" --build_type ",
436437
]) + BUILD_TYPE_SELECT, # "dev" or "stable".
438+
# macOS only since the script validates if the version string is proper for macOS.
439+
tags = MOZC_TAGS.MAC_ONLY,
437440
tools = [
438441
"//base:mozc_version_txt",
439442
"//build_tools:tweak_macinstaller_script",
@@ -484,6 +487,8 @@ genrule(
484487
),
485488
outs = ["installer.zip"],
486489
cmd = "$(location :zip_files) --inputs $(SRCS) --output $@",
490+
# macOS only since this rule depends on :tweak_postflight that works only for macOS.
491+
tags = MOZC_TAGS.MAC_ONLY,
487492
tools = [
488493
":zip_files",
489494
],

0 commit comments

Comments
 (0)