bors 99f841c083 Auto merge of #11613 - arriven:fix/11083-rerun-if-changed-published-sources-dir, r=epage
Improve CI caching by skipping mtime checks for paths in $CARGO_HOME

Skip mtime checks for paths pointing into `$CARGO_HOME` to avoid rebuilds when only caching $CARGO_HOME/registry/{index, cache} and $CARGO_HOME/git/db and some of the dependencies have `rerun-if-changed=directory` in their `build.rs`

I considered skipping mtime checking only on `$CARGO_HOME/registry/src` but it looks like other functionality (like downloading a newer version of dependency) is unaffected by this and this way we also cover the same issue with git based dependencies (except the part where `cargo` is forced to re-fetch submodules if `$CARGO_HOME/git/checkouts` is missing) and it is more in line with the discussion in #9455

Fix #11083

Credit `@weihanglo` for the test (I did add a case of checking that dependency update still triggers a rebuild but they are the original author of the rest of the test)
2023-01-24 13:31:37 +00:00
..
2023-01-23 21:19:48 -06:00
2023-01-14 09:23:39 +00:00
2023-01-05 11:04:52 -06:00
2023-01-10 20:03:11 -06:00
2023-01-10 13:52:29 -06:00
2022-10-31 20:43:20 -06:00
2023-01-10 20:03:11 -06:00
2022-07-30 19:36:58 -07:00
2022-07-30 19:36:58 -07:00
2022-12-28 18:44:05 +01:00
2022-10-28 15:39:02 -07:00
2021-12-12 13:30:31 -07:00
2023-01-14 15:10:16 -08:00
2023-01-14 09:23:39 +00:00
2023-01-14 15:10:16 -08:00
2023-01-10 13:52:29 -06:00
2023-01-14 09:23:39 +00:00
2022-12-13 23:49:07 +00:00
2022-10-28 17:13:25 -07:00
2022-05-08 01:07:28 +08:00
2022-07-30 19:36:58 -07:00
2022-07-30 19:36:58 -07:00
2022-12-19 10:50:55 -07:00
2023-01-05 11:04:52 -06:00
2023-01-05 11:04:52 -06:00
2022-04-19 16:00:15 -05:00
2023-01-14 09:23:39 +00:00
2023-01-14 09:23:39 +00:00
2023-01-22 14:02:23 -08:00
2022-08-10 23:19:35 +08:00
2022-11-20 18:14:17 +08:00
2022-12-13 23:49:07 +00:00