fix: yarn binary is now run from separate @yarn repo fixes #3530
diff --git a/docs/Built-ins.md b/docs/Built-ins.md index 36ddfc8..fcbfd12 100755 --- a/docs/Built-ins.md +++ b/docs/Built-ins.md
@@ -1313,8 +1313,8 @@ file. This helps to have reproducible builds across builds. To update a dependency or install a new one run the `yarn install` command with the -vendored yarn binary. `bazel run @nodejs_host//:yarn install`. You can pass the options like -`bazel run @nodejs_host//:yarn install -- -D <dep-name>`. +vendored yarn binary. `bazel run @yarn//:yarn install`. You can pass the options like +`bazel run @yarn//:yarn install -- -D <dep-name>`. Defaults to `True`
diff --git a/internal/npm_install/npm_install.bzl b/internal/npm_install/npm_install.bzl index df4fa76..77f5778 100644 --- a/internal/npm_install/npm_install.bzl +++ b/internal/npm_install/npm_install.bzl
@@ -881,7 +881,7 @@ elif yarn_version == "classic": # Set frozen lockfile as default install to install the exact version from the yarn.lock # file. To perform an yarn install use the vendord yarn binary with: - # `bazel run @nodejs_host//:yarn install` or `bazel run @nodejs_host//:yarn install -- -D <dep-name>` + # `bazel run @yarn//:yarn install` or `bazel run @yarn//:yarn install -- -D <dep-name>` if repository_ctx.attr.frozen_lockfile: yarn_args.append("--frozen-lockfile") @@ -1025,8 +1025,8 @@ file. This helps to have reproducible builds across builds. To update a dependency or install a new one run the `yarn install` command with the -vendored yarn binary. `bazel run @nodejs_host//:yarn install`. You can pass the options like -`bazel run @nodejs_host//:yarn install -- -D <dep-name>`. +vendored yarn binary. `bazel run @yarn//:yarn install`. You can pass the options like +`bazel run @yarn//:yarn install -- -D <dep-name>`. """, ), "use_global_yarn_cache": attr.bool(