Skip to content

fix(setup): auto-detect Ubuntu 26.04 and set PLAYWRIGHT_HOST_PLATFORM_OVERRIDE#2113

Open
padmarajnidagundi wants to merge 1 commit into
garrytan:mainfrom
padmarajnidagundi:fix/ubuntu-26-04-playwright-chromium
Open

fix(setup): auto-detect Ubuntu 26.04 and set PLAYWRIGHT_HOST_PLATFORM_OVERRIDE#2113
padmarajnidagundi wants to merge 1 commit into
garrytan:mainfrom
padmarajnidagundi:fix/ubuntu-26-04-playwright-chromium

Conversation

@padmarajnidagundi

Copy link
Copy Markdown

Summary

Fixes #2101

Playwright does not yet ship a native chromium build for ubuntu26.04-x64. Running ./setup on Ubuntu 26.04 fails immediately with:

\
Failed to install browsers
Error: ERROR: Playwright does not support chromium on ubuntu26.04-x64
\\

Fix

The setup script now reads /etc/os-release before calling �unx playwright install chromium. When it detects Ubuntu 26.04, it sets PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 for the install subshell only. The ubuntu24.04 binary runs correctly on ubuntu26.04 (same glibc lineage).

The override is scoped to the subshell — it does not persist to the caller's environment or affect any other setup step.

The workaround documented in #2101 (PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 ./setup) still works for users on other unsupported future Ubuntu versions.

Testing

  • The change is confined to the setup bash script (no TypeScript changes, no SKILL.md changes).
  • On non-Ubuntu-26.04 systems the code path is unchanged; _PLAYWRIGHT_PLATFORM_OVERRIDE stays empty and the existing �unx playwright install chromium runs as before.

…_OVERRIDE

Playwright does not yet ship a native chromium build for ubuntu26.04-x64.
When setup detects Ubuntu 26.04, it now automatically sets
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 before calling
bunx playwright install chromium. The ubuntu24.04 binary runs fine on
ubuntu26.04 (same glibc lineage).

Without this fix users see:
  Failed to install browsers
  Error: ERROR: Playwright does not support chromium on ubuntu26.04-x64

The override is scoped to the install subshell; it does not persist to the
environment or affect subsequent setup steps.

Fixes garrytan#2101
@trunk-io

trunk-io Bot commented Jun 25, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@padmarajnidagundi

Copy link
Copy Markdown
Author

/trunk merge

@trunk-io

trunk-io Bot commented Jun 25, 2026

Copy link
Copy Markdown

An error occurred while submitting your PR to the queue: Only users that are a part of this repo's Trunk organization or have write permissions to the repo can submit a PR to the queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

does not support chromium on ubuntu26.04-x64

1 participant