-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(builtin): linker silently not generating expected links in windows
Currently the builtin linker sometimes does not generate links as defined in the module mappings on Windows. This results in unexpected and confusing runtime issues, and differences with other platforms. The linker fails to generate links if module mappings result in a different symlink/module hierarchy (as computed by `reduceModules`). For example, consider in a previous linker run, we linked the module `@angular/cdk/overlay` into `node_modules/@angular/cdk/overlay`. In a second run then, we actually link `@angular/cdk`. The linker will fail to do that as the `node_modules/@angular/cdk` folder already exists (due to missing sandbox/runfile symlinking in windows) We fix this by clearing such leftover linker directories so that the newly configured module mapping can be created. In order to avoid race conditions in non-sandboxed environments, we need to pay special attention to potential concurrent resource accesses, and also need to preserve possible child links from previous or concurrent linker runs.
- Loading branch information
1 parent
395a98c
commit 2979fad
Showing
3 changed files
with
337 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.