Skip to content

Commit 91be19f

Browse files
committed
fix: export dir
1 parent 01a5e21 commit 91be19f

File tree

5 files changed

+28
-585
lines changed

5 files changed

+28
-585
lines changed

internal/service/wiki_processor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (c *WikiProcessor) ProcessOpenWorkspaceEvent(ctx context.Context, event *mo
151151
c.logger.Error("wiki %s generate err: %w", event.WorkspacePath, err)
152152
errs = append(errs, err)
153153
} else {
154-
wikiPath := filepath.Join(".costrict", "wiki")
154+
wikiPath := filepath.Join(event.WorkspacePath, ".costrict", "wiki")
155155
c.logger.Info("wiki %s generate successfully, start to export to path %s", event.WorkspacePath, wikiPath)
156156
// 导出到workspace的输出目录
157157
if err = c.wiki.ExportWiki(event.WorkspacePath, wikiPath, "markdown", "multi", ""); err != nil {
@@ -206,7 +206,7 @@ func (c *WikiProcessor) ProcessEvents(ctx context.Context, workspacePaths []stri
206206
WorkspacePath: workspacePath,
207207
})
208208
if err != nil {
209-
c.logger.Error("failed to process open_workspace event for codegraph: %v", err)
209+
c.logger.Error("failed to process open_workspace event for wiki: %v", err)
210210
continue
211211
}
212212
c.logger.Info("wiki process open_workspace event successfully: %s", workspacePath)

0 commit comments

Comments
 (0)