Closed straight-shoota closed 3 years ago
What do you think of showing an example in the error message? It could check if src/name.cr exists and provide that as an example.
Not sure that's a good idea. I'd usually recommend not to use the shard name as target file to allow easily requiring it as a dependency without starting the app.
Regardless, what do you think of showing how it's done in the error?
I don't think there is yet any error message with detailed instructions in shards. Typically it just says s.th. like "run shards update
first". But it's more complex with shard.yml
configuration.
Maybe we could reference man shard.yml
. But it's bad UX if the manpage is missing.
If no
targets
are defined inshard.yml
, the commandshards build
should fail with an error message instead of silently succeeding without actually building anything./cc https://forum.crystal-lang.org/t/trouble-with-building-shard/3122