Fix merge issues from PR #3 (--config CLI flag)#6
Conversation
- Fix undefined variable: configFile -> configPath in config.go - Fix truncated test: restore complete TestLoadConfig_CustomPath - Remove unused import: path/filepath from sync.go - Update integration tests: DocumentsDir -> DocumentPatterns 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Summary
Fixes build and test failures introduced by merge conflicts in PR #3.
Changes
configFile→configPathTestLoadConfig_CustomPathtest (was truncated)path/filepathimportDocumentsDir→DocumentPatterns(6 occurrences)Test plan
🤖 Generated with Claude Code
PR Type
Bug fix, Tests
Description
Fix undefined variable
configFile→configPathin config.goRestore complete
TestLoadConfig_CustomPathtest (was truncated)Update integration tests:
DocumentsDir→DocumentPatterns(6 occurrences)Remove unused
path/filepathimport from sync.goDiagram Walkthrough
File Walkthrough
config.go
Fix undefined variable in config loadinginternal/config/config.go
configFile→configPathin fprintfcall
config_test.go
Restore and update config tests for new APIinternal/config/config_test.go
TestLoadConfig_CustomPathtest that was truncateddocument_patternsinstead of deprecateddocuments_dirDocumentPatternsarray instead ofDocumentsDirstringintegration_test.go
Update integration tests for DocumentPatterns APIintegration_test.go
DocumentPatternsarray instead ofDocumentsDirstringTestEndToEnd_FirstRun,TestEndToEnd_Reindex,TestEndToEnd_MultipleFiles,TestEndToEnd_DeleteDocument,TestEndToEnd_Sync,TestEndToEnd_EmptyDirectorycfg.DocumentsDir = testDir→cfg.DocumentPatterns =[]string{testDir}sync.go
Remove unused import statementinternal/indexer/sync.go
path/filepathimport