d2 icon indicating copy to clipboard operation
d2 copied to clipboard

do not require playwright checking driver version

Open alixander opened this issue 2 years ago • 1 comments

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

alixander avatar Dec 16 '22 05:12 alixander

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

pleshevskiy avatar Dec 16 '22 07:12 pleshevskiy

I believe that a good solution would be for d2 to prioritize loading Playwright from the "$PLAYWRIGHT_BROWSERS_PATH" instead of automatically downloading it.

GTrunSec avatar Aug 17 '23 08:08 GTrunSec

related: https://pkg.go.dev/github.com/playwright-community/playwright-go#RunOptions

alixander avatar Aug 17 '23 15:08 alixander