From 2c56af3a3b51f77634c3242216bdefd79f3d542d Mon Sep 17 00:00:00 2001 From: mash-graz Date: Tue, 3 Oct 2023 21:35:21 +0200 Subject: [PATCH] fix: use most recent stable debian release browser binaries in case of debian testing and unstable (#27397) Fixes: #27398 --- packages/playwright-core/src/utils/hostPlatform.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/playwright-core/src/utils/hostPlatform.ts b/packages/playwright-core/src/utils/hostPlatform.ts index a766a98ebc..f084f922d1 100644 --- a/packages/playwright-core/src/utils/hostPlatform.ts +++ b/packages/playwright-core/src/utils/hostPlatform.ts @@ -72,6 +72,10 @@ export const hostPlatform = ((): HostPlatform => { return ('debian11' + archSuffix) as HostPlatform; if (distroInfo?.id === 'debian' && distroInfo?.version === '12') return ('debian12' + archSuffix) as HostPlatform; + // use most recent supported release for 'debian testing' and 'unstable'. + // they never include a numeric version entry in /etc/os-release. + if (distroInfo?.id === 'debian' && distroInfo?.version === '') + return ('debian12' + archSuffix) as HostPlatform; return ('generic-linux' + archSuffix) as HostPlatform; } if (platform === 'win32')