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"))