crystal-lang / shards

Dependency manager for the Crystal language
Other
758 stars 99 forks source link

Ambiguous shard name source checker error message could be more helpful #590

Open rmarronnier opened 11 months ago

rmarronnier commented 11 months ago

Edit : after digging down, another dependency in my canonical shard.yml

  cable:
    github: cable-cr/cable

required

  redis:
    github: stefanwille/crystal-redis

Maybe the

Error shard name (redis) has ambiguous sources: 'git: https://github.com/jgaskins/redis.git' and 'git: https://github.com/stefanwille/crystal-redis.git'.

error message could list all the shard.yml files with conflicting shard name ?


Original issue :

A shards install using

dependencies:
  redis:
    github: jgaskins/redis

results in :

Error shard name (redis) has ambiguous sources: 'git: https://github.com/jgaskins/redis.git' and 'git: https://github.com/stefanwille/crystal-redis.git'.

Is this intended behaviour ?


Shards 0.17.3 [d75b004] (2023-04-07)