From 2a8451c033dfc97bc8f0fdaf9630f5828b75bf9a Mon Sep 17 00:00:00 2001
From: th-kim0823
Date: Fri, 15 May 2026 16:05:34 +0900
Subject: [PATCH] fix(p10-1a-1): tighten kebab-parse-code manifest + tests
Co-Authored-By: Claude Sonnet 4.6
---
crates/kebab-parse-code/Cargo.toml | 4 +++-
crates/kebab-parse-code/tests/lang.rs | 1 +
crates/kebab-parse-code/tests/repo.rs | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/crates/kebab-parse-code/Cargo.toml b/crates/kebab-parse-code/Cargo.toml
index ac76da0..ad6aef5 100644
--- a/crates/kebab-parse-code/Cargo.toml
+++ b/crates/kebab-parse-code/Cargo.toml
@@ -2,12 +2,14 @@
name = "kebab-parse-code"
version = { workspace = true }
edition = { workspace = true }
+rust-version = { workspace = true }
license = { workspace = true }
+repository = { workspace = true }
+description = "Language-aware code parsing infrastructure (lang dispatch, .git/ detect, skip helpers) for the kebab pipeline (P10-1A-1)"
[dependencies]
anyhow = { workspace = true }
gix = { workspace = true }
-kebab-core = { path = "../kebab-core" }
[dev-dependencies]
tempfile = { workspace = true }
diff --git a/crates/kebab-parse-code/tests/lang.rs b/crates/kebab-parse-code/tests/lang.rs
index 73a1551..f7db0a9 100644
--- a/crates/kebab-parse-code/tests/lang.rs
+++ b/crates/kebab-parse-code/tests/lang.rs
@@ -48,6 +48,7 @@ fn special_filenames_map_to_identifiers() {
assert_eq!(code_lang_for_path(Path::new("Dockerfile")), Some("dockerfile"));
assert_eq!(code_lang_for_path(Path::new("foo.dockerfile")), Some("dockerfile"));
assert_eq!(code_lang_for_path(Path::new("Makefile")), Some("make"));
+ assert_eq!(code_lang_for_path(Path::new("GNUmakefile")), Some("make"));
}
#[test]
diff --git a/crates/kebab-parse-code/tests/repo.rs b/crates/kebab-parse-code/tests/repo.rs
index 68365a1..0c11133 100644
--- a/crates/kebab-parse-code/tests/repo.rs
+++ b/crates/kebab-parse-code/tests/repo.rs
@@ -46,7 +46,7 @@ fn detect_repo_walks_up_to_git_dir() {
}
#[test]
-fn detect_repo_caches_per_path_call_for_repeated_files_in_same_repo() {
+fn detect_repo_returns_consistent_metadata_for_paths_in_same_repo() {
let tmp = TempDir::new().unwrap();
let repo_root = tmp.path().join("myrepo");
fs::create_dir_all(&repo_root).unwrap();