d2
d2 copied to clipboard
do not require playwright checking driver version
https://github.com/NixOS/nixpkgs/issues/206055
err: failed to install Playwright: could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 1
Haven't tried it before... I have a similar problem using nix
➜ d2 src/d2.d2 out/d2.png
2022-12-16 07:13:18.969 [INFO] (default.stdlib) <./../../github.com/playwright-community/playwright-go/run.go:107> (*PlaywrightDriver).DownloadDriver Downloading driver to /home/jan/.cache/ms-playwright-go/1.20.0-beta-1647057403000
2022-12-16 07:13:28.049 [INFO] (default.stdlib) <./../../github.com/playwright-community/playwright-go/run.go:160> (*PlaywrightDriver).DownloadDriver Downloaded driver successfully
/home/jan/.cache/ms-playwright-go/1.20.0-beta-1647057403000/playwright.sh: line 3: /home/jan/.cache/ms-playwright-go/1.20.0-beta-1647057403000/node: No such file or directory
err: failed to install Playwright: could not install driver: could not install browsers: could not install browsers: exit status 127
I believe that a good solution would be for d2 to prioritize loading Playwright from the "$PLAYWRIGHT_BROWSERS_PATH" instead of automatically downloading it.
related: https://pkg.go.dev/github.com/playwright-community/playwright-go#RunOptions