@@ -392,7 +392,7 @@ public void testPackageBoundaryError_externalRepository_boundary() throws Except
392
392
.build ());
393
393
scratch .file ("BUILD" , "cc_library(name = 'cclib'," , " srcs = ['r/my_sub_lib.h'])" );
394
394
invalidatePackages (
395
- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
395
+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
396
396
reporter .removeHandler (failFastHandler );
397
397
getConfiguredTarget ("//:cclib" );
398
398
assertContainsEvent (
@@ -413,7 +413,7 @@ public void testPackageBoundaryError_externalRepository_entirelyInside() throws
413
413
.add ("local_repository(name='r', path='/r')" )
414
414
.build ());
415
415
invalidatePackages (
416
- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
416
+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
417
417
reporter .removeHandler (failFastHandler );
418
418
getConfiguredTarget ("@r//:cclib" );
419
419
assertContainsEvent (
@@ -688,7 +688,6 @@ public void testCreateStarlarkActionArgumentsWithUnusedInputsList() throws Excep
688
688
689
689
@ Test
690
690
public void testCreateStarlarkActionArgumentsWithResourceSet_success () throws Exception {
691
- setBuildLanguageOptions ("--experimental_action_resource_set" );
692
691
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
693
692
setRuleContext (ruleContext );
694
693
@@ -714,8 +713,7 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_success() throws Ex
714
713
}
715
714
716
715
@ Test
717
- public void testCreateStarlarkActionArgumentsWithResourceSet_flagDisabled () throws Exception {
718
- setBuildLanguageOptions ("--noexperimental_action_resource_set" );
716
+ public void testCreateStarlarkActionArgumentsWithResourceSet_noneResourceSet () throws Exception {
719
717
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
720
718
setRuleContext (ruleContext );
721
719
@@ -727,7 +725,7 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_flagDisabled() thro
727
725
"ruleContext.actions.run(" ,
728
726
" inputs = ruleContext.files.srcs," ,
729
727
" outputs = ruleContext.files.srcs," ,
730
- " resource_set = get_resources ," ,
728
+ " resource_set = None ," ,
731
729
" executable = 'executable')" );
732
730
StarlarkAction action =
733
731
(StarlarkAction )
@@ -740,7 +738,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_flagDisabled() thro
740
738
741
739
@ Test
742
740
public void testCreateStarlarkActionArgumentsWithResourceSet_lambdaForbidden () throws Exception {
743
- setBuildLanguageOptions ("--experimental_action_resource_set" );
744
741
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
745
742
setRuleContext (ruleContext );
746
743
@@ -761,7 +758,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_lambdaForbidden() t
761
758
762
759
@ Test
763
760
public void testCreateStarlarkActionArgumentsWithResourceSet_illegalResource () throws Exception {
764
- setBuildLanguageOptions ("--experimental_action_resource_set" );
765
761
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
766
762
setRuleContext (ruleContext );
767
763
@@ -787,7 +783,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_illegalResource() t
787
783
788
784
@ Test
789
785
public void testCreateStarlarkActionArgumentsWithResourceSet_defaultValue () throws Exception {
790
- setBuildLanguageOptions ("--experimental_action_resource_set" );
791
786
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
792
787
setRuleContext (ruleContext );
793
788
@@ -810,7 +805,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_defaultValue() thro
810
805
811
806
@ Test
812
807
public void testCreateStarlarkActionArgumentsWithResourceSet_intDict () throws Exception {
813
- setBuildLanguageOptions ("--experimental_action_resource_set" );
814
808
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
815
809
setRuleContext (ruleContext );
816
810
@@ -833,7 +827,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_intDict() throws Ex
833
827
834
828
@ Test
835
829
public void testCreateStarlarkActionArgumentsWithResourceSet_notDict () throws Exception {
836
- setBuildLanguageOptions ("--experimental_action_resource_set" );
837
830
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
838
831
setRuleContext (ruleContext );
839
832
@@ -859,7 +852,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_notDict() throws Ex
859
852
860
853
@ Test
861
854
public void testCreateStarlarkActionArgumentsWithResourceSet_wrongDict () throws Exception {
862
- setBuildLanguageOptions ("--experimental_action_resource_set" );
863
855
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
864
856
setRuleContext (ruleContext );
865
857
@@ -886,7 +878,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_wrongDict() throws
886
878
@ Test
887
879
public void testCreateStarlarkActionArgumentsWithResourceSet_incorrectSignature ()
888
880
throws Exception {
889
- setBuildLanguageOptions ("--experimental_action_resource_set" );
890
881
StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
891
882
setRuleContext (ruleContext );
892
883
@@ -1083,7 +1074,6 @@ public void testDeriveTreeArtifactNextToSibling() throws Exception {
1083
1074
assertThat (artifact .isTreeArtifact ()).isTrue ();
1084
1075
}
1085
1076
1086
-
1087
1077
@ Test
1088
1078
public void testParamFileSuffix () throws Exception {
1089
1079
setRuleContext (createRuleContext ("//foo:foo" ));
@@ -1637,7 +1627,7 @@ public void testRelativeLabelInExternalRepository() throws Exception {
1637
1627
.build ());
1638
1628
1639
1629
invalidatePackages (
1640
- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
1630
+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
1641
1631
setRuleContext (createRuleContext ("@r//a:r" ));
1642
1632
Label depLabel = (Label ) ev .eval ("ruleContext.attr.internal_dep.label" );
1643
1633
assertThat (depLabel ).isEqualTo (Label .parseCanonical ("//:dep" ));
@@ -1648,7 +1638,7 @@ public void testExternalWorkspaceLoad() throws Exception {
1648
1638
// RepositoryDelegatorFunction deletes and creates symlink for the repository and as such is not
1649
1639
// safe to execute in parallel. Disable checks with package loader to avoid parallel
1650
1640
// evaluations.
1651
- initializeSkyframeExecutor (/*doPackageLoadingChecks=*/ false );
1641
+ initializeSkyframeExecutor (/* doPackageLoadingChecks= */ false );
1652
1642
scratch .file (
1653
1643
"/r1/BUILD" ,
1654
1644
"filegroup(name = 'test'," ,
@@ -1680,7 +1670,7 @@ public void testExternalWorkspaceLoad() throws Exception {
1680
1670
.build ());
1681
1671
1682
1672
invalidatePackages (
1683
- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
1673
+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
1684
1674
assertThat (getConfiguredTarget ("@r1//:test" )).isNotNull ();
1685
1675
}
1686
1676
@@ -1702,7 +1692,7 @@ public void testLoadBlockRepositoryRedefinition() throws Exception {
1702
1692
.build ());
1703
1693
1704
1694
invalidatePackages (
1705
- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
1695
+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
1706
1696
assertThat (
1707
1697
(List )
1708
1698
getConfiguredTargetAndData ("@foo//:baz" )
@@ -1723,7 +1713,7 @@ public void testLoadBlockRepositoryRedefinition() throws Exception {
1723
1713
.add ("local_repository(name = 'foo', path = '/baz')" )
1724
1714
.build ());
1725
1715
1726
- invalidatePackages (/*alsoConfigs=*/ false ); // Repository shuffling messes with toolchains.
1716
+ invalidatePackages (/* alsoConfigs= */ false ); // Repository shuffling messes with toolchains.
1727
1717
assertThrows (Exception .class , () -> createRuleContext ("@foo//:baz" ));
1728
1718
assertContainsEvent (
1729
1719
"Cannot redefine repository after any load statement in the WORKSPACE file "
0 commit comments