This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/dev by this push:
     new a46b3e06 fix: resolve output path to absolute path in newAnswerBuilder
a46b3e06 is described below

commit a46b3e060adb453a48afa45ea77452c7be12c409
Author: hgaol <[email protected]>
AuthorDate: Thu Apr 3 09:32:59 2025 +0800

    fix: resolve output path to absolute path in newAnswerBuilder
---
 internal/cli/build.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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{

Reply via email to