Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create symlink for build files present on local installed npm modules #2326

Conversation

mistic
Copy link
Contributor

@mistic mistic commented Dec 2, 2020

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:

What is the current behavior?

Currently if a local module installed with npm contains a BUILD file we generate the usual BUILD file content and just append the one found on the BUILD file.

Issue Number: #2131

What is the new behavior?

With this PR the BUILD file inside an installed local module will be symlinked instead of generated and get its content appended.

Does this PR introduce a breaking change?

  • Yes
  • No

It is really unlikely that the current behaviour is being useful to someone who relies on having a BUILD file in a local installed npm module as it introduces a race condition. However, the migration path would be to rewrite their BUILD files inside such modules to contain the expected generated targets by npm_install/yarn_install rules like *-module__contents or *--module__files and also add the extra targets they have previously defined on the BUILD file.

HINT: In order to don't have to manually writ *-module__contents or *--module__files we can remove the BUILD file, run the npm_install/yarn_install rules and just grasp the generated BUILD file content.

Other information

test(builtin): test setup attempt for support local linked packages

chore(builtin): format fix

chore(builtin): format fix

chore(builtin): format fix

chore(builtin): put back unintended changes

test(builtin): correct test implementation

feat(builtin): include warning log about not found build file
@alexeagle alexeagle changed the base branch from stable to 3.x December 3, 2020 15:40
@alexeagle alexeagle changed the base branch from 3.x to stable December 3, 2020 15:40
@mistic
Copy link
Contributor Author

mistic commented Dec 3, 2020

closed in favor of #2330

@mistic mistic closed this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant