From 461e2940849bfcdef877669a9bff341c01e5eaa1 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 7 Nov 2022 11:34:31 -0800 Subject: [PATCH] fix: yarn binary is now run from separate @yarn repo fixes #3530 --- docs/Built-ins.md | 4 ++-- internal/npm_install/npm_install.bzl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Built-ins.md b/docs/Built-ins.md index 36ddfc8402..fcbfd1201b 100755 --- a/docs/Built-ins.md +++ b/docs/Built-ins.md @@ -1313,8 +1313,8 @@ This flag enables an exact install of the version that is specified in the `yarn 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 `. +vendored yarn binary. `bazel run @yarn//:yarn install`. You can pass the options like +`bazel run @yarn//:yarn install -- -D `. Defaults to `True` diff --git a/internal/npm_install/npm_install.bzl b/internal/npm_install/npm_install.bzl index df4fa76936..77f5778b83 100644 --- a/internal/npm_install/npm_install.bzl +++ b/internal/npm_install/npm_install.bzl @@ -881,7 +881,7 @@ def _yarn_install_impl(repository_ctx): 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 ` + # `bazel run @yarn//:yarn install` or `bazel run @yarn//:yarn install -- -D ` if repository_ctx.attr.frozen_lockfile: yarn_args.append("--frozen-lockfile") @@ -1025,8 +1025,8 @@ This flag enables an exact install of the version that is specified in the `yarn 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 `. +vendored yarn binary. `bazel run @yarn//:yarn install`. You can pass the options like +`bazel run @yarn//:yarn install -- -D `. """, ), "use_global_yarn_cache": attr.bool(