Shards mad at me

Can anyone explain why adding:

dependencies:
  harvest:
    github: xendk/harvest.cr
    version: ~> 0.1.0

To a fresh projects shard.yml results in shards install saying:

Resolving dependencies
Unable to satisfy the following requirements:

- `harvest (~> 0.1.0)` required by `shard.yml`
Failed to resolve dependencies

? It installs without the version, and no luck with >= or 0.1 either.

What am I missing?

Hm, maybe the tag has to start with v: v0.1.0

1 Like

But of course.

Maybe shards should print a notice if it didn’t find any v* tags in a repo, to help poor souls like me?

3 Likes

Related: Fix: make 'v' prefix optional by devnote-dev · Pull Request #626 · crystal-lang/shards · GitHub

3 Likes