Commit 58a497c
committed
ci: also rewrite npm-proxy.dev URLs to JFrog in setup-jfrog
Diagnostic run revealed the package-lock.json contains 415 URLs
pointing to `npm-proxy.dev.databricks.com` (in addition to 774
pointing to `registry.npmjs.org`). The internal dev-proxy URLs are
written by `npm install` when the lockfile is regenerated on a dev
workstation whose .npmrc points to that proxy.
Protected runners cannot reach npm-proxy.dev.databricks.com — every
fetch fails with ECONNRESET, npm retries (default 2 attempts), then
gives up with "Exit handler never called", skipping bin-linking and
breaking downstream `prettier`/`nyc` calls.
Extend the sed rewrite to cover both registry hosts so all `resolved:`
URLs route through JFrog regardless of where the lockfile was
generated. Also print the post-rewrite URL distribution so future
debugging is one log scroll away.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>1 parent fcf36d9 commit 58a497c
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
| 60 | + | |
| 61 | + | |
52 | 62 | | |
53 | 63 | | |
54 | 64 | | |
0 commit comments