gleam-lang / gleam

⭐️ A friendly language for building type-safe, scalable systems!
https://gleam.run
Apache License 2.0
17.42k stars 723 forks source link

Permit `gleam run -m mod_from_some_dep` even when the root package does not compile #2322

Closed lpil closed 3 weeks ago

lpil commented 1 year ago

Currently the full package must compile for gleam run -m to compile. Make it so it is possible to run modules from dependencies even when the root package does not compile.

This can be done by skipping compilation of the root package when running a command from outside the root package.

hfjallemark commented 1 month ago

Ran into this today when playing around with squirrel -- if I change my SQL query so that it breaks my app somewhere I can't change the query back and run squirrel again without fixing the broken code in my app (e.g. by commenting it out).

giacomocavalieri commented 1 month ago

I can give this a shot!