From f02a68c2e9d4e38ee15ff1535bfafc3d2d1b9a16 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Fri, 9 Dec 2022 08:06:22 -0800 Subject: [PATCH] fix: dont look for root nmprc (#702) --- npm/private/npm_translate_lock_state.bzl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/npm/private/npm_translate_lock_state.bzl b/npm/private/npm_translate_lock_state.bzl index decdb0670..49112036a 100644 --- a/npm/private/npm_translate_lock_state.bzl +++ b/npm/private/npm_translate_lock_state.bzl @@ -100,7 +100,6 @@ def _init_common_labels(rctx, label_store): if attr.npmrc: label_store.add("npmrc", attr.npmrc) label_store.add_sibling("lock", "sibling_npmrc", NPM_RC_FILENAME) - label_store.add_root("root_npmrc", NPM_RC_FILENAME) # pnpm-workspace.yaml file label_store.add_sibling("lock", "pnpm_workspace", PNPM_WORKSPACE_FILENAME) @@ -158,10 +157,6 @@ def _init_npmrc(priv, rctx, label_store): # check for a .npmrc next to the pnpm-lock.yaml file _maybe_npmrc(priv, rctx, label_store, "sibling_npmrc") - if not label_store.has("npmrc"): - # check for a .npmrc next to the pnpm-lock.yaml file - _maybe_npmrc(priv, rctx, label_store, "root_npmrc") - if label_store.has("npmrc"): _load_npmrc(priv, rctx, label_store.path("npmrc"))