# Duplicate attribute: development\_dependencies in shard.yml

**URL:** <https://forum.crystal-lang.org/t/duplicate-attribute-development-dependencies-in-shard-yml/2645>\
**Category:** Help & Support\
**Created:** [October 29, 2020, 12:21am UTC](https://forum.crystal-lang.org/t/duplicate-attribute-development-dependencies-in-shard-yml/2645 "2020-10-29T00:21:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FriscoGPS](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/friscogps/32/770_2.png) [@FriscoGPS](https://forum.crystal-lang.org/u/FriscoGPS)\
**Post date:** [October 29, 2020, 12:21am UTC](https://forum.crystal-lang.org/t/duplicate-attribute-development-dependencies-in-shard-yml/2645/1 "2020-10-29T00:21:59Z")

</div>

Hi guys.  
I’m having an issue that reports duplicated dependencies, but this happens when running `shards install` after adding `shrine.cr` as a dependency.  
As far as I’ve looked into this issue, I found that Shrine has a development dependency to `spectator: gitlab: arctic-fox/spectator` but It also has a dependency to one of it’s own repos` content_disposition: github: jetrockets/content_disposition.cr branch: master` which duplicates the development dependency to `arctic-fox/spectator`.  
It then reports the issue.

Any guess on how could I get this repo to work? Shrine seems to be very useful but why would the programmer be responsible for redundant development dependencies of nested dependencies?

Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/blacksmoke16/32/1241_2.png) [@Blacksmoke16](https://forum.crystal-lang.org/u/Blacksmoke16)\
**Post date:** [October 29, 2020, 12:41am UTC](https://forum.crystal-lang.org/t/duplicate-attribute-development-dependencies-in-shard-yml/2645/2 "2020-10-29T00:41:28Z")

</div>

Add a version to the dependency. I.e.

```auto
dependencies:
  shrine:
    github: jetrockets/shrine.cr
    version: ~> 0.6.0

```

This error was a problem in the `0.2.3` version. By specifying a version it allows the resolver to ignore those older versions. Otherwise it needs to resolve the whole tree to determine the most recent compatible version.

---

<div class="post-metadata">

**Author:** ![FriscoGPS](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/friscogps/32/770_2.png) [@FriscoGPS](https://forum.crystal-lang.org/u/FriscoGPS)\
**Post date:** [October 29, 2020, 12:56am UTC](https://forum.crystal-lang.org/t/duplicate-attribute-development-dependencies-in-shard-yml/2645/3 "2020-10-29T00:56:18Z")

</div>

Thank you. Just found the discussion under a closed [PR](https://github.com/jetrockets/shrine.cr/issues/11)

And thanks a lot for your quick response. Very useful. I appreciate it.

Cheers!
