# Swift package dependencies

**URL:** <https://forums.kodeco.com/t/swift-package-dependencies/63184>\
**Category:** Server Side Swift with Vapor\
**Created:** [February 26, 2019, 3:32pm UTC](https://forums.kodeco.com/t/swift-package-dependencies/63184 "2019-02-26T15:32:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeltansg](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/michaeltansg/32/81494_2.png) [@michaeltansg](https://forums.kodeco.com/u/michaeltansg)\
**Post date:** [February 26, 2019, 3:32pm UTC](https://forums.kodeco.com/t/swift-package-dependencies/63184/1 "2019-02-26T15:32:26Z")

</div>

How can I tell which version of Database Kit is being used by `.package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0")`?

If there is a bug in Database Kit that is fixed in a later version that what is in fluent-postgresql, how do I ensure it is using an updated dependency?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 26, 2019, 4:34pm UTC](https://forums.kodeco.com/t/swift-package-dependencies/63184/2 "2019-02-26T16:34:22Z")

</div>

@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [February 27, 2019, 12:58pm UTC](https://forums.kodeco.com/t/swift-package-dependencies/63184/3 "2019-02-27T12:58:59Z")

</div>

@michaeltansg if you look in **Package.resolved** , that files contains the current packages and exact versions you’re using.

To ensure you’re using an updated dependency, run `swift package update` to update everything.

---

<div class="post-metadata">

**Author:** ![michaeltansg](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/michaeltansg/32/81494_2.png) [@michaeltansg](https://forums.kodeco.com/u/michaeltansg)\
**Post date:** [February 28, 2019, 2:34am UTC](https://forums.kodeco.com/t/swift-package-dependencies/63184/4 "2019-02-28T02:34:13Z")

</div>

Thank you so much @0xtim. Checking the resolved file is very useful. If I see a fix to an issue in one of the dependencies that I would like to pick up (example: Database Kit), is it true that I should just add that package last and the last entry will supersede the previous? (I know I could just check the resolved file, but I just want to be sure this is the proper way to pick up a bug fix in one of the transitive dependencies of fluent-postgresql.

Example:

```auto
    dependencies: [
        .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0"),
        .package(url: "https://github.com/vapor/database-kit.git", from: "1.3.3")
    ],

```

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [March 9, 2019, 2:16pm UTC](https://forums.kodeco.com/t/swift-package-dependencies/63184/5 "2019-03-09T14:16:49Z")

</div>

Yes if you want to pull in a specific dependency version then that will work. However you’ll get a warning if you aren’t linking that dependency to your target. Best bet is to just use `swift package update` to update the dependencies
