Skip to content

fix(builtin): fix an bug where a nodejs_binary would fail to resolve an npm package when the linker is disabled - #3492

Merged
gregmagolan merged 1 commit into
stablefrom
nolinker-bug-fixes
Jun 23, 2022
Merged

fix(builtin): fix an bug where a nodejs_binary would fail to resolve an npm package when the linker is disabled#3492
gregmagolan merged 1 commit into
stablefrom
nolinker-bug-fixes

Conversation

@kormide

@kormide kormide commented Jun 23, 2022

Copy link
Copy Markdown
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

@gregmagolan

What is the current behavior?

Under a specific set of conditions where the linker is disabled, export_directories_only is false, and you have multiple yarn_installs, npm packages from the subdir node_modules will fail to be resolved.

What is the new behavior?

The bug is fixed.

Does this PR introduce a breaking change?

  • Yes
  • No

Comment thread e2e/BUILD.bazel Outdated

e2e_integration_test(
name = "linker_disabled_regression",
bazel_commands = ["run //subdir:binary"],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should this be two-element argv?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, all usages I see have a full command per string.

@kormide
kormide force-pushed the nolinker-bug-fixes branch 4 times, most recently from b4ac0b1 to 1b9c80e Compare June 23, 2022 01:15
@kormide
kormide force-pushed the nolinker-bug-fixes branch from 1b9c80e to 45bd531 Compare June 23, 2022 04:33

@gregmagolan gregmagolan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants