Don't require `cargo update` when bumping versions
authorAlex Crichton <alex@alexcrichton.com>
Tue, 20 Mar 2018 18:38:25 +0000 (11:38 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 20 Mar 2018 19:05:33 +0000 (12:05 -0700)
commit0deaae9e52d63e3d70e9073962c6d0cccf9e77a3
treef976d20cdd6f75cb3bf46ce3e9657a78a33693b0
parent1f306dbc615a9afc3d2c21b456ee9d1786ce5838
Don't require `cargo update` when bumping versions

One historical annoyance I've always had with Cargo that I've found surprising
is that in some situations when you bump version numbers you'll have to end up
running `cargo update` later on to get everything to build. You get pretty wonky
error messages in this case as well saying a package doesn't exist when it
clearly does at a particular location!

I've had difficulty historically nailing down a test case for this but it looks
like we ironically already had one in our test suite and I also jury-rigged up
one from a case I ran into in the wild today.
src/cargo/ops/resolve.rs
tests/testsuite/build.rs
tests/testsuite/update.rs