Skip to content

Commit

Permalink
fix: dont look for root nmprc (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Dec 9, 2022
1 parent 9cd3605 commit f02a68c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions npm/private/npm_translate_lock_state.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"))

Expand Down

0 comments on commit f02a68c

Please sign in to comment.