# Error resolving db (~\> 0.7.0, ~\> 0.7.0, ~\> 0.6.0)

**URL:** <https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153>\
**Category:** Help & Support\
**Created:** [September 24, 2019, 1:18am UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153 "2019-09-24T01:18:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ejstembler](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/ejstembler/32/553_2.png) [@ejstembler](https://forum.crystal-lang.org/u/ejstembler)\
**Post date:** [September 24, 2019, 1:18am UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/1 "2019-09-24T01:18:24Z")

</div>

I had Posrgres (will/crystal-pg) working before in my Kemal project. I recently add a spec test for a Postgres data provider I wrote. However, now it seems when I do a `shards install` I’m getting this error:

```nohighlight
Fetching https://github.com/kemalcr/spec-kemal.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/jeromegn/kilt.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/will/crystal-pg.git
Fetching https://github.com/vladfaust/migrate.cr.git
Error resolving db (~> 0.7.0, ~> 0.7.0, ~> 0.6.0)

```

I’ve tried to update my `shards.yml` to:

```auto
dependencies:
  spec-kemal:
    github: kemalcr/spec-kemal
  kemal:
    github: kemalcr/kemal
  db:
    github: crystal-lang/crystal-db
    version: "~> 0.7.0"
  pg:
    github: will/crystal-pg
  migrate:
    github: vladfaust/migrate.cr
    version: "~> 0.5.0"

crystal: 0.30.1

```

However it doesn’t seem to matter. Am I specfifying the desired crystal-db version correctly? Anyone else experience this problem?

---

<div class="post-metadata">

**Author:** ![asterite](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/asterite/32/60_2.png) [@asterite](https://forum.crystal-lang.org/u/asterite)\
**Post date:** [September 24, 2019, 2:12am UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/2 "2019-09-24T02:12:36Z")

</div>

migrate.cr seems to depend on crystal-db 0.6

You will need to upgrade that (tell the author to do it or send a PR for it).

---

<div class="post-metadata">

**Author:** ![ejstembler](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/ejstembler/32/553_2.png) [@ejstembler](https://forum.crystal-lang.org/u/ejstembler)\
**Post date:** [September 24, 2019, 2:32am UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/3 "2019-09-24T02:32:58Z")

</div>

Ah, okay. I can see that here: [https://github.com/vladfaust/migrate.cr/blob/master/shard.yml#L12-L14](https://github.com/vladfaust/migrate.cr/blob/master/shard.yml#L12-L14)

Thanks for the info!

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/rogerdpack/32/117_2.png) [@rogerdpack](https://forum.crystal-lang.org/u/rogerdpack)\
**Post date:** [September 24, 2019, 5:20am UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/4 "2019-09-24T05:20:46Z")

</div>

> [@ejstembler](#):
>
> ```auto
> Error resolving db (~> 0.7.0, ~> 0.7.0, ~> 0.6.0)
> 
> ```

It would be nice if shards mentioned where the conflicting requirements come from :)

---

<div class="post-metadata">

**Author:** ![bcardiff](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/bcardiff/32/3_2.png) [@bcardiff](https://forum.crystal-lang.org/u/bcardiff)\
**Post date:** [September 24, 2019, 1:29pm UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/5 "2019-09-24T13:29:38Z")

</div>

@ejstembler during the release we took care of submitting a patch in [https://github.com/amberframework/micrate/pull/40](https://github.com/amberframework/micrate/pull/40) among others.

---

<div class="post-metadata">

**Author:** ![ejstembler](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/ejstembler/32/553_2.png) [@ejstembler](https://forum.crystal-lang.org/u/ejstembler)\
**Post date:** [September 24, 2019, 2:05pm UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/6 "2019-09-24T14:05:04Z")

</div>

Awesome!

It looks like you bumped the module version to 0.3.1:

```crystal
module Micrate
  VERSION = "0.3.1"
end

```

But the `shard.yml` has 0.3.3:

```auto
name: micrate
version: 0.3.3

```

Is that right?

---

<div class="post-metadata">

**Author:** ![bcardiff](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/bcardiff/32/3_2.png) [@bcardiff](https://forum.crystal-lang.org/u/bcardiff)\
**Post date:** [September 24, 2019, 2:17pm UTC](https://forum.crystal-lang.org/t/error-resolving-db-0-7-0-0-7-0-0-6-0/1153/7 "2019-09-24T14:17:48Z")

</div>

Not me. That PR describes a bit the state of the repo and why the PR shows multiple commit. I am the author of only the changes to update to crystal-db 0.7.0
