fix: Misleading message when running make and having an invalid path brick globally
erickzanardo opened this issue · comments
Description
When having an invalid global installed brick, like for example a brick named foo
that was installed from path, and such folder/path was deleted, when running mason make x
we will get an error saying Could not find brick at path/foo
, which can be confused since we are running mason make x
.
Steps To Reproduce
- Install any brick globally from path
- Remove that path from the filesytem
- Try running
mason make any_brick
- See error
Expected Behavior
Unsure what would be the best here, but I feel that it should either not give any error, and an error should occur only when trying to use the invalid brick, or maybe just silently removing the invalid brick from the mason lock?
Thanks for reporting this! Curious to see how pub handles this situation. Either way I'll get a fix shortly, thanks! 🙏