Skip to content

Commit cf351e6

Browse files
committed
test
1 parent 18e3985 commit cf351e6

2 files changed

Lines changed: 33 additions & 6 deletions

File tree

patches/@puppeteer__browsers.patch

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/lib/cjs/CLI.js b/lib/cjs/CLI.js
2-
index a4746096241ebaaf7b3eca40a6d8b0fd13191118..c31962a01016f06f8f192fd4c3e7b8ad0f1fa12d 100644
2+
index a4746096241ebaaf7b3eca40a6d8b0fd13191118..d99323363dd4a1618285970fca7b2564d66e820e 100644
33
--- a/lib/cjs/CLI.js
44
+++ b/lib/cjs/CLI.js
55
@@ -177,6 +177,8 @@ class CLI {
@@ -11,11 +11,38 @@ index a4746096241ebaaf7b3eca40a6d8b0fd13191118..c31962a01016f06f8f192fd4c3e7b8ad
1111
if (this.#pinnedBrowsers && !args.browser) {
1212
// Use allSettled to avoid scenarios that
1313
// a browser may fail early and leave the other
14-
@@ -303,6 +305,7 @@ class CLI {
14+
@@ -195,6 +197,7 @@ class CLI {
15+
}));
16+
for (const install of result) {
17+
if (install.status === 'rejected') {
18+
+ console.log(install.reason);
19+
throw install.reason;
20+
}
21+
}
22+
@@ -303,6 +306,7 @@ class CLI {
1523
: 'latest';
1624
}
1725
async #install(args) {
1826
+ console.log('start install', args);
1927
args.platform ??= (0, detectPlatform_js_1.detectBrowserPlatform)();
2028
if (!args.browser) {
2129
throw new Error(`No browser arg provided`);
30+
@@ -318,7 +322,18 @@ class CLI {
31+
args.browser.buildId = options.buildId;
32+
}
33+
const originalBuildId = args.browser.buildId;
34+
+ console.log('before buildId', args.browser);
35+
args.browser.buildId = await (0, browser_data_js_1.resolveBuildId)(args.browser.name, args.platform, args.browser.buildId);
36+
+ console.log('buildId', args.browser, buildId, {
37+
+ browser: args.browser.name,
38+
+ buildId: args.browser.buildId,
39+
+ platform: args.platform,
40+
+ cacheDir: args.path ?? this.#cachePath,
41+
+ downloadProgressCallback: 'default',
42+
+ baseUrl: args.baseUrl,
43+
+ buildIdAlias: originalBuildId !== args.browser.buildId ? originalBuildId : undefined,
44+
+ installDeps: args.installDeps,
45+
+ });
46+
await (0, install_js_1.install)({
47+
browser: args.browser.name,
48+
buildId: args.browser.buildId,

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)