From 6a7280eeca8d064f02e8692d4402278a2184dfbc Mon Sep 17 00:00:00 2001 From: Jesse Schalken Date: Mon, 13 Nov 2023 00:36:17 +1100 Subject: [PATCH] Ignore platform constraints so yarn_install result is the same across platforms for host!=exec and host!=target builds Signed-off-by: Jordan Mele --- internal/npm_install/npm_install.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/npm_install/npm_install.bzl b/internal/npm_install/npm_install.bzl index d01a6457..df1e3dfb 100755 --- a/internal/npm_install/npm_install.bzl +++ b/internal/npm_install/npm_install.bzl @@ -743,7 +743,7 @@ def _yarn_install_impl(repository_ctx): is_windows_host = is_windows_os(repository_ctx) - yarn_args = [] + yarn_args = ["--ignore-platform"] # 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: