Skip to content

Commit

Permalink
fix: yarn binary is now run from separate @Yarn repo
Browse files Browse the repository at this point in the history
fixes #3530
  • Loading branch information
alexeagle committed Nov 8, 2022
1 parent 475657c commit dafc2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/Built-ins.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions internal/npm_install/npm_install.bzl
Expand Up @@ -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 <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")

Expand Down Expand Up @@ -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 <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(
Expand Down

0 comments on commit dafc2db

Please sign in to comment.