diff --git a/docs/npm_translate_lock.md b/docs/npm_translate_lock.md
index 6373fcd7e..ad81ee774 100644
--- a/docs/npm_translate_lock.md
+++ b/docs/npm_translate_lock.md
@@ -69,7 +69,7 @@ npm_translate_lock(name, external_repository_action_cache, link_workspace, pnpm_version, use_pnpm,
register_copy_directory_toolchains, register_copy_to_directory_toolchains,
register_yq_toolchains, register_tar_toolchains, npm_package_target_name,
- use_starlark_yaml_parser, package_json, warn_on_unqualified_tarball_url, kwargs)
+ use_starlark_yaml_parser, package_json, kwargs)
Repository macro to generate starlark code from a lock file.
@@ -140,7 +140,6 @@ For more about how to use npm_translate_lock, read [pnpm and rules_js](/docs/pnp
| npm_package_target_name | The name of linked npm_package
targets. When npm_package
targets are linked as pnpm workspace packages, the name of the target must align with this value.
The {dirname}
placeholder is replaced with the directory name of the target.
By default the directory name of the target is used.
Default: {dirname}
| "{dirname}"
|
| use_starlark_yaml_parser | Opt-out of using yq
to parse the pnpm-lock file which was added in https://github.com/aspect-build/rules_js/pull/1458 and use the legacy starlark yaml parser instead.
This opt-out is a return safety in cases where yq is not able to parse the pnpm generated yaml file. For example, this has been observed to happen due to a line such as the following in the pnpm generated lock file:
resolution: {tarball: https://gitpkg.vercel.app/blockprotocol/blockprotocol/packages/%40blockprotocol/type-system-web?6526c0e}
?
character in the tarball
value causes yq
to fail with: $ yq pnpm-lock.yaml -o=json Error: bad file 'pnpm-lock.yaml': yaml: line 7129: did not find expected ',' or '}'
False
|
| package_json | Deprecated.package.json
files that are part of the workspace to data
instead. | None
|
-| warn_on_unqualified_tarball_url | Deprecated. Will be removed in next major release. | None
|
| kwargs | Internal use only | none |
diff --git a/npm/private/npm_translate_lock.bzl b/npm/private/npm_translate_lock.bzl
index 769b2cb97..1ed201d52 100644
--- a/npm/private/npm_translate_lock.bzl
+++ b/npm/private/npm_translate_lock.bzl
@@ -194,9 +194,6 @@ def npm_translate_lock(
use_starlark_yaml_parser = False,
# TODO(2.0): remove package_json
package_json = None,
- # TODO(2.0): remove warn_on_unqualified_tarball_url
- # buildifier: disable=unused-variable
- warn_on_unqualified_tarball_url = None,
**kwargs):
"""Repository macro to generate starlark code from a lock file.
@@ -527,8 +524,6 @@ def npm_translate_lock(
Add all `package.json` files that are part of the workspace to `data` instead.
- warn_on_unqualified_tarball_url: Deprecated. Will be removed in next major release.
-
npm_package_target_name: The name of linked `npm_package` targets. When `npm_package` targets are linked as pnpm workspace
packages, the name of the target must align with this value.