Open jwoertink opened 4 years ago
That information could be nice for humans in the shard.lock, yes. But since molinillo didn't need we avoid adding it. In a Gemfile lock you can see some of that information at the end IIRC.
You can use $ shards list --tree
to get the information you want today 🎉
oh yeah! I totally forgot about shards list --tree
. That actually does help. hmm... In that case, an easy fix could be a comment in the shard.lock that maybe points to something like crystal-lang.org/reference/shards (or whatever). I think there's already another issue to add a comment mentioning that the lock file is auto generated, so that could be included.
# This lock file is autogenerated...
# For more information on this file see https://crystal-lang.org/reference/shards
version: 2.0
...
Then that could be a great reference to all the neat things you can do. Or we can close this out since I have a way to get the info I was looking for. Thanks!
/cc #195
I thought this issue existed already, but I didn't see it. It would be nice if we looked in the shard.lock file to see which shard required the shards. I'm mainly talking about the sub dependencies.
If I have this shard.yml
And my shard.lock looks like
I never required
future
, so which shard did? Now, I know that it could either be teeplate, or ameba, but it could also be both. So maybe it looks like:In my case, I have a specific shard that is having some issues in Lucky stopping it from running a
shards install
, but I don't know where it's coming from without going through each of the dependencies to see what's requiring it.