Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: resolve output path to absolute path in newAnswerBuilder

hgaola46b3e060adb
diff --git a/internal/cli/build.go b/internal/cli/build.go
index d8a12644..2f43a911 100644
--- a/internal/cli/build.go
+++ b/internal/cli/build.go
@@ -105,7 +105,7 @@ func newAnswerBuilder(buildDir, outputPath string, plugins []string, originalAns
if len(outputPath) == 0 {
outputPath = filepath.Join(parentDir, "new_answer")
}
- material.outputPath = outputPath
+ material.outputPath, _ = filepath.Abs(outputPath)
material.plugins = formatPlugins(plugins)
material.answerModuleReplacement = os.Getenv("ANSWER_MODULE")
return &answerBuilder{