fix: migrate playwright-go to mxschmitt module path after deprecation - #2782
Open
faisalaffan wants to merge 1 commit into
Open
fix: migrate playwright-go to mxschmitt module path after deprecation#2782faisalaffan wants to merge 1 commit into
faisalaffan wants to merge 1 commit into
Conversation
playwright-community/playwright-go is deprecated and its bundled driver versions (1.47–1.60) have been removed from Microsoft CDN, causing 404 errors on `d2 init-playwright`. Migrate to github.com/mxschmitt/playwright-go v0.6100.0 which bundles driver 1.61.0 — still available on CDN.
Author
|
Hi @alixander, could you review this when you get a chance? This affects anyone trying to render non-SVG formats — with the deprecated module path and purged CDN drivers, d2 init-playwright is completely broken. Quite a few people are hitting this (seen in #2776 and elsewhere). This is actually my first time contributing here. I discovered D2 through AI — tried PlantUML and Mermaid before, but neither came close to the completeness and beauty of D2, especially the animation support. Honestly mind-blowing to see a diagramming tool this polished. Huge respect for the work you've put into this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
github.com/playwright-community/playwright-gois deprecated. The projecthas moved to
github.com/mxschmitt/playwright-go.Additionally, Microsoft CDN has removed all Playwright driver binaries
for versions 1.47 through 1.60, causing
d2 init-playwrightto fail with:err: failed to install Playwright: could not install driver: could not install driver:
error: got non 200 status code: 404 (404 Not Found) from
https://playwright.azureedge.net/builds/driver/playwright-1.52.0-mac-arm64.zip
Fix
playwright-community/playwright-go→mxschmitt/playwright-gov0.5200.0→v0.6100.01.61.0is still available on Microsoft CDNChanges
lib/png/png.go— import pathlib/xgif/xgif.go— import pathd2cli/main.go— import pathgo.mod/go.sum— dependency updateTest
d2 init-playwrightsucceedsLocal Test