Commit 18b96f0
committed
fix(@angular/build): rewrite paths from sandboxed execroots when running under Bazel
rewriteForBazel only maps paths that fall inside BAZEL_BINDIR relative to
JS_BINARY__EXECROOT. Locally sandboxed actions (darwin-sandbox,
linux-sandbox) stage inputs as symlinks into a differently rooted copy of
the execroot, so realpath resolves entry points to the unsandboxed
execroot while the TypeScript program is keyed by sandbox paths. The
compiler plugin then fails with "File 'main.ts' is missing from the
TypeScript compilation".
Derive the effective execroot from the working directory and re-anchor
paths that resolve outside of it.1 parent f8ccc41 commit 18b96f0
1 file changed
Lines changed: 35 additions & 5 deletions
Lines changed: 35 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
13 | 30 | | |
14 | 31 | | |
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
18 | 35 | | |
19 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
20 | 39 | | |
21 | 40 | | |
22 | 41 | | |
23 | 42 | | |
24 | 43 | | |
25 | | - | |
26 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
27 | 57 | | |
28 | 58 | | |
29 | | - | |
| 59 | + | |
30 | 60 | | |
0 commit comments