# Cargo.lock, libraries and CI

**URL:** <https://users.rust-lang.org/t/cargo-lock-libraries-and-ci/7698>\
**Category:** help\
**Created:** [October 18, 2016, 6:07pm UTC](https://users.rust-lang.org/t/cargo-lock-libraries-and-ci/7698 "2016-10-18T18:07:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![steveklabnik](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/steveklabnik/32/120_2.png) [@steveklabnik](https://users.rust-lang.org/u/steveklabnik)\
**Post date:** [October 19, 2016, 12:39am UTC](https://users.rust-lang.org/t/cargo-lock-libraries-and-ci/7698/7 "2016-10-19T00:39:23Z")

</div>

> [@ruuda](#):
>
> However, not putting Cargo.lock under source control then implies that the build can start to fail without changes to the code, as I found out the hard way.

It's worth noting that regardless of putting `Cargo.lock` under source control, Cargo will ignore the lockfile when doing resolution, and this is very much intended behavior. So doing that alone won't solve the problem.

(I agree with everyone above that historically, I've put the "oldest minimum version" in my CI config, generally. I don't always do it now, but if and when LTS becomes a thing, will for sure.)

---

_[View the full topic](https://users.rust-lang.org/t/cargo-lock-libraries-and-ci/7698)._
