sapling/CMake
Wez Furlong b4f725330e eden: regenerate Cargo.lock on each cargo invocation
Summary:
When using our vendored set of crates, cmake doesn't
have any dependency information to use to invalidate the Cargo.lock
file when we update crate versions.  In addition, since we're
vendoring from a local directory, cargo itself doesn't seem to
want to re-assess the dependencies in that same situation, leading
to confusing error messages like this when we want to build rust
targets:

```
error: failed to select a version for the requirement `anyhow = "= 1.0.26"`
  candidate versions found which didn't match: 1.0.28
```

This commit addresses this issue by removing the `Cargo.lock` that
may be alongside the `Cargo.toml` prior to invoking `cargo`.
`cargo` is pretty quick at recomputing the deps so this has
neglible overhead.

Reviewed By: xavierd

Differential Revision: D21394363

fbshipit-source-id: 547db2e2395a47aed77d9597e659eb2d96e274dd
2020-05-04 18:37:36 -07:00
..
CompilerSettingsUnix.cmake update license headers in CMake files 2019-06-19 17:02:46 -07:00
eden-config.cpp.in update build configuration information for Python and C++ 2020-04-22 12:48:47 -07:00
eden-config.h.in update build configuration information for Python and C++ 2020-04-22 12:48:47 -07:00
eden-config.py.in update build configuration information for Python and C++ 2020-04-22 12:48:47 -07:00
EdenConfigChecks.cmake enable all integration test sources in CMake builds 2020-05-04 11:46:09 -07:00
FindLibGit2.cmake make support for Git optional 2019-09-20 18:22:04 -07:00
FindLZ4.cmake cmake: always build support for the EdenSCM backing store 2019-11-22 13:00:07 -08:00
FindPrjfs.cmake eden: adjust projectedfs SDK dep search procedure 2019-08-28 06:49:30 -07:00
FindSELinux.cmake update license headers in CMake files 2019-06-19 17:02:46 -07:00
FindSqlite3.cmake update license headers in CMake files 2019-06-19 17:02:46 -07:00
RustStaticLibrary.cmake eden: regenerate Cargo.lock on each cargo invocation 2020-05-04 18:37:36 -07:00