Skip to content

Commit

Permalink
fix: fixup backward compat on npm_path (#3741)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Apr 3, 2024
1 parent c1b5bd2 commit 209df42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodejs/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _nodejs_toolchain_impl(ctx):
node = ctx.file.node,
node_path = ctx.attr.node_path,
npm = ctx.file.npm,
npm_path = ctx.attr.npm_path if ctx.attr.npm_path else _to_manifest_path(ctx, ctx.file.npm), # _to_manifest_path for backward compat
npm_path = ctx.attr.npm_path if ctx.attr.npm_path else (_to_manifest_path(ctx, ctx.file.npm) if ctx.file.npm else ""), # _to_manifest_path for backward compat
npm_sources = npm_sources,
headers = struct(
providers_map = {
Expand Down

0 comments on commit 209df42

Please sign in to comment.