问题描述
当我运行 shards install
时,Crystal 在哪里安装来自 shard.yml
的分片依赖项在我的系统上? RubyGems 在隐藏文件夹 ~/. gem/ruby/
中安装 gem,但是,我在主目录中找不到类似 ~/.crystal
或 ~/.shard
的位置。
解决方法
Crystal 会解析依赖项并将其安装到项目的 lib
文件夹中。
https://crystal-lang.org/reference/the_shards_command/index.html#shards-install