Closed szabgab closed 3 years ago
There's just a mismatch between the version of the binary and the documentation. This was recently changed in #496 and is not yet released (a release should follow shortly).
The documentation for the latest release 0.14.1 is available at https://github.com/crystal-lang/shards/blob/v0.14.1/docs/shard.yml.adoc
The SPEC says:
However I encountered a shard that had
crystal: 0.27.2
in it. When I tried to install it on Crystal 1.0.0 I got the following error:So as I understand the required crystal version
0.27.2
was translated to~> 0.27, >= 0.27.2
and the~> 0.27
made it fail on crystal 1.0.0. Changing thecrystal
field to>= 0.27.2
solved the problem, but I think either the implementation, the documentation or my understanding is incorrect.