Files
zed/crates
Piotr Osiewicz dd730549df chore: Fix spurious rebuilds of Zed library and binary (#3952)
Currently when one runs `cargo build` twice without changing anything,
zed lib and binary are gonna get rebuilt every time. I checked out cargo
logs and it turns out we were querying wrong path to `.git/logs/HEAD` in
our build.rs, causing it to rerun on every build and thus marking zed
lib as dirty.

See logs (`CARGO_LOG=cargo::core::compiler::fingerprint=trace cargo
build`):
```
0.501173792s  INFO cargo::core::compiler::fingerprint: fingerprint dirty for zed v0.120.0 (/Users/hiro/Projects/zed/crates/zed)/RunCustomBuild/TargetInner { ..: custom_build_target("build-script-build", "/Users/hiro/Projects/zed/crates/zed/build.rs", Edition2021) }
0.501180417s  INFO cargo::core::compiler::fingerprint:     dirty: FsStatusOutdated(StaleItem(MissingFile("/Users/hiro/Projects/zed/crates/zed/.git/logs/HEAD")))
```
The path to .git directory is relative to crates/zed and not to the
workspace's root.

/cc @maxbrunsfeld 

Release Notes:
- N/A
2024-01-08 20:46:35 +01:00
..
2024-01-03 12:59:39 -08:00
2024-01-06 16:10:40 -05:00
2024-01-05 16:35:20 -07:00
2024-01-08 13:21:45 -05:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-08 12:29:54 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-02 00:04:51 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 20:02:23 -05:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2023-06-02 22:02:19 -04:00
2023-12-28 19:22:43 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-02 00:24:11 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-04 11:55:14 -07:00
2024-01-05 16:31:41 -07:00
2024-01-01 23:56:04 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
WIP
2024-01-06 14:41:35 -05:00
2024-01-08 13:33:30 -05:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00