diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkActionFactory.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkActionFactory.java index 2f87704d835e4e..2a3974179b9e37 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkActionFactory.java +++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkActionFactory.java @@ -669,7 +669,7 @@ private static String mangleMnemonic(String mnemonic) { doc = "substitutions to make when expanding the template." ), @Param( - name = "executable", + name = "is_executable", type = Boolean.class, defaultValue = "False", named = true, diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java index 6a7f2e278f5199..7ad63460e2dd89 100644 --- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java +++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java @@ -633,7 +633,7 @@ public void testCreateTemplateAction() throws Exception { " template = ruleContext.files.srcs[0],", " output = ruleContext.files.srcs[1],", " substitutions = {'a': 'b'},", - " executable = False)"); + " is_executable = False)"); TemplateExpansionAction action = (TemplateExpansionAction) Iterables.getOnlyElement( ruleContext.getRuleContext().getAnalysisEnvironment().getRegisteredActions()); @@ -669,7 +669,7 @@ public void testCreateTemplateActionWithWrongEncoding() throws Exception { " template = ruleContext.files.srcs[0],", " output = ruleContext.files.srcs[1],", " substitutions = {'a': '" + new String(bytesToDecode, latin1) + "'},", - " executable = False)"); + " is_executable = False)"); TemplateExpansionAction action = (TemplateExpansionAction) Iterables.getOnlyElement( ruleContext.getRuleContext().getAnalysisEnvironment().getRegisteredActions()); List substitutions = action.getSubstitutions();