From e28e1a61b26a3265bf8664a5686696cd0663c067 Mon Sep 17 00:00:00 2001 From: Jarvis Prime Date: Wed, 4 Mar 2026 04:43:54 +0000 Subject: [PATCH] Fix: create repo record before files (foreign key constraint) --- ingest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ingest.py b/ingest.py index e693df7..3d2160c 100644 --- a/ingest.py +++ b/ingest.py @@ -97,6 +97,9 @@ def run(): print("\n[5/6] Loading into database...") db = GraphDB() + # Create repo first (empty doc — will be filled in step 6) + db.create_repo(name=repo_name, url=TARGET_REPO, language="go", documentation="(generating...)") + for rel_path, content in go_files.items(): info = parsed[rel_path] doc = file_doc_map.get(rel_path, "")