This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 268f178dd17affacbcb103d0b95fb239728b02c0 Author: Antonin Stefanutti <[email protected]> AuthorDate: Thu Mar 18 19:20:46 2021 +0100 fix: Use rooted working directory path for the builder task --- pkg/builder/builder.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/builder/builder.go b/pkg/builder/builder.go index 4751b23..9aa0236 100644 --- a/pkg/builder/builder.go +++ b/pkg/builder/builder.go @@ -19,6 +19,7 @@ package builder import ( "context" + "os" "path" "sort" "time" @@ -46,7 +47,11 @@ func (t *builderTask) Do(ctx context.Context) v1.BuildStatus { // This is useful when the task is executed in-container, // so that its WorkingDir can be used to share state and // coordinate with other tasks. - buildDir = "." + pwd, err := os.Getwd() + if err != nil { + return result.Failed(err) + } + buildDir = pwd } c := builderContext{
