spider-gazelle / rethinkdb-orm

RethinkDB ORM for Crystal lang
MIT License
24 stars 0 forks source link

Can't install the shard. Shard name (retriable) has ambiguous sources #14

Closed alxkravchuk closed 3 years ago

alxkravchuk commented 3 years ago

my shards.yml

...
crystal: 0.35.1

license: MIT

dependencies:
  rethinkdb-orm:
    github: spider-gazelle/rethinkdb-orm

Problem:

> shards install
Resolving dependencies
Fetching https://github.com/spider-gazelle/rethinkdb-orm.git
Fetching https://github.com/spider-gazelle/active-model.git
Fetching https://github.com/crystal-community/future.cr.git
Fetching https://github.com/luckyframework/habitat.git
Fetching https://github.com/kingsleyh/crystal-rethinkdb.git
Fetching https://github.com/Sija/retriable.cr.git
Error shard name (retriable) has ambiguous sources: 'git: https://github.com/Sija/retriable.cr.git' and 'git: https://github.com/sija/retriable.cr.git'.

> shards --version
Shards 0.12.0 (2020-09-04)

I think spider-gazelle/rethinkdb-orm dependencies are conflicting with kingsleyh/crystal-rethinkdb dependencies.

spider-gazelle/rethinkdb-orm:

...
dependencies:
  retriable:
    github: Sija/retriable.cr
...

kingsleyh/crystal-rethinkdb:

...
dependencies:
  retriable:
    github: sija/retriable.cr
    version: ~> 0.2.0
...

What can i do?

dukenguyenxyz commented 3 years ago

Not sure what caused this error, as I don't have it, running shards install now and even shards update

caspiano commented 3 years ago

Looks like this is how you resolve this issue. Not entirely happy with it. Outlined here: crystal-lang/shards/pull/422

For your case, create a shard.override.yml in your project root with the following contents

dependencies:
  retriable:
    github: Sija/retriable.cr