terrastruct / d2-playground

An online runner to play, learn, and create with D2, the modern diagram scripting language that turns text to diagrams.
https://play.d2lang.com
Mozilla Public License 2.0
73 stars 10 forks source link

go build and run fails #41

Open prologic opened 11 months ago

prologic commented 11 months ago

This is what I consider to be an operational bug. Looks like this has only been designed to run in CI and deployed to whereever you're deploying this to 😅

I tried to build this locally and run it and failed.

go build .
./d2-playground`

should "just work"™ (but it does not)

Also it should be possible to install the binary elsewhere and have the assets builtin using the embed package, e.g:

go install .
cd ~
d2-playground

But this also does not work.

Honestly this should also help make it a hell of a lot easier to contribute too as well 🤞

Can we please fix this? 🙏