diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java
index 25b155e00fca63..8902fe24254db4 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java
@@ -904,16 +904,18 @@ public Object download(
".tzst", "tar.bz2", ".tbz", ".ar", or ".deb" here.
"""),
@Param(
- name = "stripPrefix",
+ name = "strip_prefix",
defaultValue = "''",
named = true,
doc =
"""
- A directory prefix to strip from the extracted files.
- Many archives contain a top-level directory that contains all files in the \
- archive. Instead of needing to specify this prefix over and over in the \
- build_file
, this field can be used to strip it from extracted \
- files.
+ A directory prefix to strip from the extracted files. Many archives contain a
+ top-level directory that contains all files in the archive. Instead of needing to
+ specify this prefix over and over in the build_file
, this field can
+ be used to strip it from extracted files.
+
+
For compatibility, this parameter may also be used under the deprecated name
+ For compatibility, this parameter may also be used under the deprecated name
+ stripPrefix
.
"""),
@Param(
name = "allow_fail",
@@ -973,6 +975,12 @@ public Object download(
contain non-Unicode filenames, or which have files that would extract to \
the same path on case-insensitive filesystems.
"""),
+ @Param(
+ name = "stripPrefix",
+ documented = false,
+ positional = false,
+ named = true,
+ defaultValue = "''"),
})
public StructImpl downloadAndExtract(
Object url,
@@ -986,8 +994,10 @@ public StructImpl downloadAndExtract(
Dict, ?> headersUnchecked, // build_file
, this field can be used to strip it from extracted"
- + " files."),
+ """
+ a directory prefix to strip from the extracted files. Many archives contain a
+ top-level directory that contains all files in the archive. Instead of needing to
+ specify this prefix over and over in the build_file
, this field can be
+ used to strip it from extracted files.
+
+ stripPrefix
.
+ """),
@Param(
name = "rename_files",
defaultValue = "{}",
@@ -1173,6 +1188,12 @@ public StructImpl downloadAndExtract(
+ "not attempt to watch the file; passing 'auto' will only attempt to watch "
+ "the file when it is legal to do so (see watch()
docs for more "
+ "information."),
+ @Param(
+ name = "stripPrefix",
+ documented = false,
+ positional = false,
+ named = true,
+ defaultValue = "''"),
})
public void extract(
Object archive,
@@ -1180,8 +1201,10 @@ public void extract(
String stripPrefix,
Dict, ?> renameFiles, //