Skip to content

build: enable bazel node modules symlinking [resubmit w/ fixes] #17776

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

Merged

Conversation

devversion
Copy link
Member

@devversion devversion commented Nov 21, 2019

Resubmit with fixes for the release building failures.

The symlinking allowed us use caching for node_modules. This meant that we needed
to rework how we apply postinstall patches to:

  • Still throw if something no longer applies (i.e. when updating Angular)
  • To not throw if yarn runs on node_modules already patched/restored from cache.

To do this, we implemented something called "marker files" that can be used to
determine if a file has been patched or not. Unfortunately I didn't realize that we
have multiple individual patches for the same file, so the first patch edit created the
marker, and followed patches for the same file got skipped.

Reverts the revert the reverts: 49527e5.
Apparently we accidentally skipped a few postinstall patches because
we added the edit marker file for the first patch being applied to a file. This
causes subsequent patches targeting the same file to be skipped accidentally
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 21, 2019
@devversion devversion marked this pull request as ready for review November 21, 2019 21:00
@devversion devversion requested review from jelbourn and a team as code owners November 21, 2019 21:00
@devversion devversion added pr: merge safe target: patch This PR is targeted for the next patch release labels Nov 21, 2019
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Nov 22, 2019
@jelbourn jelbourn merged commit 3f6a1fd into angular:master Nov 22, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants