@@ -19,14 +19,18 @@ load("//xcode:available_xcodes.bzl", "available_xcodes")
19
19
load ("//xcode:xcode_config.bzl" , "xcode_config" )
20
20
load ("//xcode:xcode_config_alias.bzl" , "xcode_config_alias" )
21
21
load ("//xcode:xcode_version.bzl" , "xcode_version" )
22
+ load (
23
+ "//xcode/private:providers.bzl" ,
24
+ "XcodeVersionPropertiesInfo" ,
25
+ ) # buildifier: disable=bzl-visibility
22
26
load (":test_helpers.bzl" , "FIXTURE_TAGS" , "find_action" , "make_all_tests" )
23
27
24
28
visibility ("private" )
25
29
26
30
# ------------------------------------------------------------------------------
27
31
28
32
def _version_retriever_impl (ctx ):
29
- xcode_properties = ctx .attr .dep [apple_common . XcodeProperties ]
33
+ xcode_properties = ctx .attr .dep [XcodeVersionPropertiesInfo ]
30
34
version = xcode_properties .xcode_version
31
35
return [config_common .FeatureFlagInfo (value = version )]
32
36
@@ -264,6 +268,8 @@ def _accepts_flag_for_mutually_available(namer):
264
268
_accepts_flag_for_mutually_available_test (
265
269
name = "accepts_flag_for_mutually_available" ,
266
270
target_under_test = "accepts_flag_for_mutually_available__foo" ,
271
+ # TODO: Remove once we test with Bazel 8+
272
+ tags = ["manual" ],
267
273
)
268
274
return ["accepts_flag_for_mutually_available" ]
269
275
@@ -308,6 +314,8 @@ def _prefers_flag_over_mutually_available(namer):
308
314
_prefers_flag_over_mutually_available_test (
309
315
name = "prefers_flag_over_mutually_available" ,
310
316
target_under_test = "prefers_flag_over_mutually_available__foo" ,
317
+ # TODO: Remove once we test with Bazel 8+
318
+ tags = ["manual" ],
311
319
)
312
320
return ["prefers_flag_over_mutually_available" ]
313
321
@@ -352,6 +360,8 @@ def _warn_with_explicit_local_only_version(namer):
352
360
_warn_with_explicit_local_only_version_test (
353
361
name = "warn_with_explicit_local_only_version" ,
354
362
target_under_test = "warn_with_explicit_local_only_version__foo" ,
363
+ # TODO: Remove once we test with Bazel 8+
364
+ tags = ["manual" ],
355
365
)
356
366
return ["warn_with_explicit_local_only_version" ]
357
367
@@ -400,6 +410,8 @@ def _prefer_local_default_if_no_mutual_no_flag_different_main_version(namer):
400
410
_prefer_local_default_if_no_mutual_no_flag_different_main_version_test (
401
411
name = "prefer_local_default_if_no_mutual_no_flag_different_main_version" ,
402
412
target_under_test = "prefer_local_default_if_no_mutual_no_flag_different_main_version__foo" ,
413
+ # TODO: Remove once we test with Bazel 8+
414
+ tags = ["manual" ],
403
415
)
404
416
return ["prefer_local_default_if_no_mutual_no_flag_different_main_version" ]
405
417
@@ -447,6 +459,8 @@ def _prefer_local_default_if_no_mutual_no_flag_different_build_alias(namer):
447
459
_prefer_local_default_if_no_mutual_no_flag_different_build_alias_test (
448
460
name = "prefer_local_default_if_no_mutual_no_flag_different_build_alias" ,
449
461
target_under_test = "prefer_local_default_if_no_mutual_no_flag_different_build_alias__foo" ,
462
+ # TODO: Remove once we test with Bazel 8+
463
+ tags = ["manual" ],
450
464
)
451
465
return ["prefer_local_default_if_no_mutual_no_flag_different_build_alias" ]
452
466
@@ -494,6 +508,8 @@ def _prefer_local_default_if_no_mutual_no_flag_different_full_version(namer):
494
508
_prefer_local_default_if_no_mutual_no_flag_different_full_version_test (
495
509
name = "prefer_local_default_if_no_mutual_no_flag_different_full_version" ,
496
510
target_under_test = "prefer_local_default_if_no_mutual_no_flag_different_full_version__foo" ,
511
+ # TODO: Remove once we test with Bazel 8+
512
+ tags = ["manual" ],
497
513
)
498
514
return ["prefer_local_default_if_no_mutual_no_flag_different_full_version" ]
499
515
@@ -545,6 +561,8 @@ def _choose_newest_mutual_xcode(namer):
545
561
_choose_newest_mutual_xcode_test (
546
562
name = "choose_newest_mutual_xcode" ,
547
563
target_under_test = "choose_newest_mutual_xcode__foo" ,
564
+ # TODO: Remove once we test with Bazel 8+
565
+ tags = ["manual" ],
548
566
)
549
567
return ["choose_newest_mutual_xcode" ]
550
568
@@ -816,18 +834,26 @@ def _config_alias_config_setting(namer):
816
834
_config_alias_config_setting_no_flag_test (
817
835
name = "config_alias_config_setting_no_flag" ,
818
836
target_under_test = namer ("gen" ),
837
+ # TODO: Remove once we test with Bazel 8+
838
+ tags = ["manual" ],
819
839
)
820
840
_config_alias_config_setting_6_4_test (
821
841
name = "config_alias_config_setting_6_4" ,
822
842
target_under_test = namer ("gen" ),
843
+ # TODO: Remove once we test with Bazel 8+
844
+ tags = ["manual" ],
823
845
)
824
846
_config_alias_config_setting_6_test (
825
847
name = "config_alias_config_setting_6" ,
826
848
target_under_test = namer ("gen" ),
849
+ # TODO: Remove once we test with Bazel 8+
850
+ tags = ["manual" ],
827
851
)
828
852
_config_alias_config_setting_12_test (
829
853
name = "config_alias_config_setting_12" ,
830
854
target_under_test = namer ("gen" ),
855
+ # TODO: Remove once we test with Bazel 8+
856
+ tags = ["manual" ],
831
857
)
832
858
return [
833
859
"config_alias_config_setting_no_flag" ,
@@ -960,10 +986,14 @@ def _default_version_config_setting(namer):
960
986
_default_version_config_setting_no_flag_test (
961
987
name = "default_version_config_setting_no_flag" ,
962
988
target_under_test = namer ("gen" ),
989
+ # TODO: Remove once we test with Bazel 8+
990
+ tags = ["manual" ],
963
991
)
964
992
_default_version_config_setting_6_4_test (
965
993
name = "default_version_config_setting_6_4" ,
966
994
target_under_test = namer ("gen" ),
995
+ # TODO: Remove once we test with Bazel 8+
996
+ tags = ["manual" ],
967
997
)
968
998
return [
969
999
"default_version_config_setting_no_flag" ,
@@ -1013,6 +1043,8 @@ def _valid_version(namer):
1013
1043
_valid_version_test (
1014
1044
name = "valid_version" ,
1015
1045
target_under_test = "valid_version__foo" ,
1046
+ # TODO: Remove once we test with Bazel 8+
1047
+ tags = ["manual" ],
1016
1048
)
1017
1049
return ["valid_version" ]
1018
1050
@@ -1053,6 +1085,8 @@ def _valid_alias_dotted_version(namer):
1053
1085
_valid_alias_dotted_version_test (
1054
1086
name = "valid_alias_dotted_version" ,
1055
1087
target_under_test = "valid_alias_dotted_version__foo" ,
1088
+ # TODO: Remove once we test with Bazel 8+
1089
+ tags = ["manual" ],
1056
1090
)
1057
1091
return ["valid_alias_dotted_version" ]
1058
1092
@@ -1093,6 +1127,8 @@ def _valid_alias_nonnumerical(namer):
1093
1127
_valid_alias_nonnumerical_test (
1094
1128
name = "valid_alias_nonnumerical" ,
1095
1129
target_under_test = "valid_alias_nonnumerical__foo" ,
1130
+ # TODO: Remove once we test with Bazel 8+
1131
+ tags = ["manual" ],
1096
1132
)
1097
1133
return ["valid_alias_nonnumerical" ]
1098
1134
@@ -1176,6 +1212,8 @@ def _requires_default(namer):
1176
1212
_requires_default_test (
1177
1213
name = "requires_default" ,
1178
1214
target_under_test = "requires_default__foo" ,
1215
+ # TODO: Remove once we test with Bazel 8+
1216
+ tags = ["manual" ],
1179
1217
)
1180
1218
return ["requires_default" ]
1181
1219
@@ -1210,6 +1248,8 @@ def _duplicate_aliases_defined_version(namer):
1210
1248
_duplicate_aliases_defined_version_test (
1211
1249
name = "duplicate_aliases_defined_version" ,
1212
1250
target_under_test = "duplicate_aliases_defined_version__foo" ,
1251
+ # TODO: Remove once we test with Bazel 8+
1252
+ tags = ["manual" ],
1213
1253
)
1214
1254
return ["duplicate_aliases_defined_version" ]
1215
1255
@@ -1248,6 +1288,8 @@ def _duplicate_aliases_within_available_xcodes(namer):
1248
1288
_duplicate_aliases_within_available_xcodes_test (
1249
1289
name = "duplicate_aliases_within_available_xcodes" ,
1250
1290
target_under_test = "duplicate_aliases_within_available_xcodes__foo" ,
1291
+ # TODO: Remove once we test with Bazel 8+
1292
+ tags = ["manual" ],
1251
1293
)
1252
1294
return ["duplicate_aliases_within_available_xcodes" ]
1253
1295
@@ -1282,6 +1324,8 @@ def _version_aliased_to_itself(namer):
1282
1324
_version_aliased_to_itself_test (
1283
1325
name = "version_aliased_to_itself" ,
1284
1326
target_under_test = "version_aliased_to_itself__foo" ,
1327
+ # TODO: Remove once we test with Bazel 8+
1328
+ tags = ["manual" ],
1285
1329
)
1286
1330
return ["version_aliased_to_itself" ]
1287
1331
@@ -1322,6 +1366,8 @@ def _duplicate_version_numbers(namer):
1322
1366
_duplicate_version_numbers_test (
1323
1367
name = "duplicate_version_numbers" ,
1324
1368
target_under_test = "duplicate_version_numbers__foo" ,
1369
+ # TODO: Remove once we test with Bazel 8+
1370
+ tags = ["manual" ],
1325
1371
)
1326
1372
return ["duplicate_version_numbers" ]
1327
1373
@@ -1358,6 +1404,8 @@ def _version_conflicts_with_alias(namer):
1358
1404
_version_conflicts_with_alias_test (
1359
1405
name = "version_conflicts_with_alias" ,
1360
1406
target_under_test = "version_conflicts_with_alias__foo" ,
1407
+ # TODO: Remove once we test with Bazel 8+
1408
+ tags = ["manual" ],
1361
1409
)
1362
1410
return ["version_conflicts_with_alias" ]
1363
1411
@@ -1415,6 +1463,8 @@ def _default_ios_sdk_version(namer):
1415
1463
_default_ios_sdk_version_test (
1416
1464
name = "default_ios_sdk_version" ,
1417
1465
target_under_test = "default_ios_sdk_version__foo" ,
1466
+ # TODO: Remove once we test with Bazel 8+
1467
+ tags = ["manual" ],
1418
1468
)
1419
1469
return ["default_ios_sdk_version" ]
1420
1470
@@ -1482,6 +1532,8 @@ def _default_sdk_versions(namer):
1482
1532
_default_sdk_versions_test (
1483
1533
name = "default_sdk_versions" ,
1484
1534
target_under_test = "default_sdk_versions__foo" ,
1535
+ # TODO: Remove once we test with Bazel 8+
1536
+ tags = ["manual" ],
1485
1537
)
1486
1538
return ["default_sdk_versions" ]
1487
1539
@@ -1553,6 +1605,8 @@ def _default_sdk_versions_selected_xcode(namer):
1553
1605
_default_sdk_versions_selected_xcode_test (
1554
1606
name = "default_sdk_versions_selected_xcode" ,
1555
1607
target_under_test = "default_sdk_versions_selected_xcode__foo" ,
1608
+ # TODO: Remove once we test with Bazel 8+
1609
+ tags = ["manual" ],
1556
1610
)
1557
1611
return ["default_sdk_versions_selected_xcode" ]
1558
1612
@@ -1625,6 +1679,8 @@ def _override_default_sdk_versions(namer):
1625
1679
_override_default_sdk_versions_test (
1626
1680
name = "override_default_sdk_versions" ,
1627
1681
target_under_test = "override_default_sdk_versions__foo" ,
1682
+ # TODO: Remove once we test with Bazel 8+
1683
+ tags = ["manual" ],
1628
1684
)
1629
1685
return ["override_default_sdk_versions" ]
1630
1686
@@ -1682,6 +1738,8 @@ def _default_without_version(namer):
1682
1738
_default_without_version_test (
1683
1739
name = "default_without_version" ,
1684
1740
target_under_test = "default_without_version__foo" ,
1741
+ # TODO: Remove once we test with Bazel 8+
1742
+ tags = ["manual" ],
1685
1743
)
1686
1744
return ["default_without_version" ]
1687
1745
@@ -1731,6 +1789,8 @@ def _version_does_not_contain_default(namer):
1731
1789
_version_does_not_contain_default_test (
1732
1790
name = "version_does_not_contain_default" ,
1733
1791
target_under_test = "version_does_not_contain_default__foo" ,
1792
+ # TODO: Remove once we test with Bazel 8+
1793
+ tags = ["manual" ],
1734
1794
)
1735
1795
return ["version_does_not_contain_default" ]
1736
1796
@@ -1786,10 +1846,14 @@ def _configuration_field_for_rule(namer):
1786
1846
_configuration_field_for_rule_1_test (
1787
1847
name = "configuration_field_for_rule_1" ,
1788
1848
target_under_test = namer ("provider_grabber" ),
1849
+ # TODO: Remove once we test with Bazel 8+
1850
+ tags = ["manual" ],
1789
1851
)
1790
1852
_configuration_field_for_rule_2_test (
1791
1853
name = "configuration_field_for_rule_2" ,
1792
1854
target_under_test = namer ("provider_grabber" ),
1855
+ # TODO: Remove once we test with Bazel 8+
1856
+ tags = ["manual" ],
1793
1857
)
1794
1858
return [
1795
1859
"configuration_field_for_rule_1" ,
@@ -1876,10 +1940,14 @@ def _configuration_field_for_aspect(namer):
1876
1940
_configuration_field_for_aspect_1_test (
1877
1941
name = "configuration_field_for_aspect_1" ,
1878
1942
target_under_test = namer ("provider_grabber" ),
1943
+ # TODO: Remove once we test with Bazel 8+
1944
+ tags = ["manual" ],
1879
1945
)
1880
1946
_configuration_field_for_aspect_2_test (
1881
1947
name = "configuration_field_for_aspect_2" ,
1882
1948
target_under_test = namer ("provider_grabber" ),
1949
+ # TODO: Remove once we test with Bazel 8+
1950
+ tags = ["manual" ],
1883
1951
)
1884
1952
return [
1885
1953
"configuration_field_for_aspect_1" ,
@@ -1939,6 +2007,8 @@ def _explicit_xcodes_mode_no_flag(namer):
1939
2007
_explicit_xcodes_mode_no_flag_test (
1940
2008
name = "explicit_xcodes_mode_no_flag" ,
1941
2009
target_under_test = "explicit_xcodes_mode_no_flag__foo" ,
2010
+ # TODO: Remove once we test with Bazel 8+
2011
+ tags = ["manual" ],
1942
2012
)
1943
2013
return ["explicit_xcodes_mode_no_flag" ]
1944
2014
@@ -1976,6 +2046,8 @@ def _explicit_xcodes_mode_with_flag(namer):
1976
2046
_explicit_xcodes_mode_with_flag_test (
1977
2047
name = "explicit_xcodes_mode_with_flag" ,
1978
2048
target_under_test = "explicit_xcodes_mode_with_flag__foo" ,
2049
+ # TODO: Remove once we test with Bazel 8+
2050
+ tags = ["manual" ],
1979
2051
)
1980
2052
return ["explicit_xcodes_mode_with_flag" ]
1981
2053
@@ -2017,6 +2089,8 @@ def _available_xcodes_mode_no_flag(namer):
2017
2089
_available_xcodes_mode_no_flag_test (
2018
2090
name = "available_xcodes_mode_no_flag" ,
2019
2091
target_under_test = "available_xcodes_mode_no_flag__foo" ,
2092
+ # TODO: Remove once we test with Bazel 8+
2093
+ tags = ["manual" ],
2020
2094
)
2021
2095
return ["available_xcodes_mode_no_flag" ]
2022
2096
@@ -2056,6 +2130,8 @@ def _available_xcodes_mode_different_alias(namer):
2056
2130
_available_xcodes_mode_different_alias_test (
2057
2131
name = "available_xcodes_mode_different_alias" ,
2058
2132
target_under_test = "available_xcodes_mode_different_alias__foo" ,
2133
+ # TODO: Remove once we test with Bazel 8+
2134
+ tags = ["manual" ],
2059
2135
)
2060
2136
return ["available_xcodes_mode_different_alias" ]
2061
2137
@@ -2093,6 +2169,8 @@ def _available_xcodes_mode_different_alias_fully_specified(namer):
2093
2169
_available_xcodes_mode_different_alias_fully_specified_test (
2094
2170
name = "available_xcodes_mode_different_alias_fully_specified" ,
2095
2171
target_under_test = "available_xcodes_mode_different_alias_fully_specified__foo" ,
2172
+ # TODO: Remove once we test with Bazel 8+
2173
+ tags = ["manual" ],
2096
2174
)
2097
2175
return ["available_xcodes_mode_different_alias_fully_specified" ]
2098
2176
@@ -2135,6 +2213,8 @@ def _available_xcodes_mode_with_flag(namer):
2135
2213
_available_xcodes_mode_with_flag_test (
2136
2214
name = "available_xcodes_mode_with_flag" ,
2137
2215
target_under_test = "available_xcodes_mode_with_flag__foo" ,
2216
+ # TODO: Remove once we test with Bazel 8+
2217
+ tags = ["manual" ],
2138
2218
)
2139
2219
return ["available_xcodes_mode_with_flag" ]
2140
2220
0 commit comments