sapling/eden
Mark Shroyer 33ba7d3fac Remove Cargo.lock on make clean (#534)
Summary:
[sapling] Remove Cargo.lock on `make clean`
The help text for `make clean` says:

> remove files created by other targets
> (except installed files or dist source tarball)

So I'd expect it to remove any non-installed built state like Cargo.toml.

Concretely, I was surprised by this behavior when the build failed after
pulling in updates, even after running `gmake clean`.  My Cargo.lock from a
previous build had pinned the watchman_client crate to an old version, but the
updated workingcopy crate relied on the addition of `BytesNameField` to
watchman_client@main.

I think it would be better if autocargo generated a Cargo.lock for us from the
Buck versions of dependencies, but as long as it's being generated as a build
artifact it should be removed by `make clean`.

Pull Request resolved: https://github.com/facebook/sapling/pull/534

Test Plan:
```
% cd eden/scm
% gmake oss
% ls Cargo.lock
Cargo.lock
% gmake clean
% ls Cargo.lock
% ls: Cargo.lock: No such file or directory
```

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/534).
* __->__ https://github.com/facebook/sapling/issues/534

Reviewed By: quark-zju

Differential Revision: D43478239

Pulled By: mshroyer

fbshipit-source-id: 2c472a0e1d86c85994191e242337dab8249bafaa
2023-02-23 11:19:12 -08:00
..
fs Fix doc tests of all eden targets 2023-02-22 17:53:55 -08:00
integration fix non_eden_operation_test by migrating to modern configs 2023-02-22 20:59:29 -08:00
locale add a copyright header to glibc_en.po 2019-04-26 14:38:27 -07:00
mononoke Fix clippy lint 2023-02-23 09:48:42 -08:00
scm Remove Cargo.lock on make clean (#534) 2023-02-23 11:19:12 -08:00
test_support upgrade pyre version in fbcode/eden - batch 1 2023-02-01 20:39:41 -08:00
test-data test-data: remove snapshot 20190313 2022-02-04 13:50:48 -08:00
testlib upgrade pyre version in fbcode/eden - batch 1 2023-02-01 20:39:41 -08:00
.clang-tidy clang-tidy: disable facebook-hte-ContextDependentStaticInit 2022-11-04 15:33:50 -07:00
.gitignore eden: wire up mac contbuild 2019-02-05 21:52:30 -08:00
.mononoke_test_file test push 2022-01-06 05:57:35 -08:00
Eden.project.toml