build: route the workspace to crates/

The workspace members, the path dependencies, the include_str! and test
fixture paths, the recorder's indexed source keys, and the Nix source
filter and path literals follow the new layout. Cargo.lock is unchanged.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent 6def6bdfbf
commit 259575a1b3
38 files changed
+159 -158

No files matched your search

+6 -6
View File
@@ -57,7 +57,7 @@ fn a_log_line_is_traced_to_the_statement_that_wrote_it() {
assert_eq!(line["target"], "komorebi::reaper");
assert_eq!(line["message"], "reaping window: 4711");
let source = &line["source"]["statement"];
assert_eq!(source["file"], "komorebi-macos/src/reaper.rs");
assert_eq!(source["file"], "crates/komorebi-macos/src/reaper.rs");
assert!(
source["template"]
.as_str()
@@ -149,7 +149,7 @@ fn git(args: &[&str]) -> Option<String> {
#[test]
fn only_the_files_that_changed_since_the_recorded_commit_are_doubted() {
komorebi_recorder::skip_without_komorebi_mac_source!();
let Some(history) = git(&["log", "-2", "--format=%H", "--", "komorebi-macos/src"]) else {
let Some(history) = git(&["log", "-2", "--format=%H", "--", "crates/komorebi-macos/src"]) else {
return;
};
let Some(older) = history.lines().nth(1) else {
@@ -164,9 +164,9 @@ fn only_the_files_that_changed_since_the_recorded_commit_are_doubted() {
older,
indexed,
"--",
"komorebi-macos/src",
"komorebi-client/src",
"komorebi-layouts/src",
"crates/komorebi-macos/src",
"crates/komorebi-client/src",
"crates/komorebi-layouts/src",
"crates/komorebi-core/src",
"crates/komorebi-transport/src",
]) else {
@@ -240,7 +240,7 @@ fn statements_can_be_searched_by_their_text() {
let statements = answer["data"]["statements"].as_array().expect("statements");
let in_reaper = statements
.iter()
.filter(|statement| statement["file"] == "komorebi-macos/src/reaper.rs")
.filter(|statement| statement["file"] == "crates/komorebi-macos/src/reaper.rs")
.count();
assert_eq!(in_reaper, 3, "{statements:#?}");
}