# Incremental builds with Swift Package Manager and Linux / Docker

**URL:** <https://forums.swift.org/t/incremental-builds-with-swift-package-manager-and-linux-docker/26538>\
**Category:** Using Swift\
**Tags:** spm\
**Created:** [July 2, 2019, 4:05am UTC](https://forums.swift.org/t/incremental-builds-with-swift-package-manager-and-linux-docker/26538 "2019-07-02T04:05:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MrMage](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mrmage/32/3829_2.png) [@MrMage](https://forums.swift.org/u/MrMage)\
**Post date:** [October 31, 2019, 6:16pm UTC](https://forums.swift.org/t/incremental-builds-with-swift-package-manager-and-linux-docker/26538/4 "2019-10-31T18:16:29Z")

</div>

@Bridger_Maxwell I have run into exactly the same problem — the results of `swift package resolve` can be cached, but the dependencies will be rebuilt every time. My suspicion is that SwiftPM for some reason considers build artifacts in lower layers stale and thinks that it needs to rebuild them. Did you ever find a solution to this?

---

_[View the full topic](https://forums.swift.org/t/incremental-builds-with-swift-package-manager-and-linux-docker/26538)._
