gleam-lang / gleam

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

`gleam remove` always reports a removal, even if the package did not exist in `gleam.toml` #3279

Closed vxern closed 4 months ago

vxern commented 4 months ago

To reproduce, run gleam remove <package> using any arbitrary input, such as gleam remove doesntexist:

vxern@Dorian tatoeba % gleam remove doesntexist
    Removed doesntexist

Gleam version: v1.2.1

lpil commented 4 months ago

Thanks

simonhammes commented 4 months ago

I can work on this. Should gleam remove error in such a case or just print a warning (to stderr, I assume)?

lpil commented 4 months ago

Return an error please