You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2018/11/20 10:47:00 UTC

[camel-k] branch master updated: temporary build folder not cleaned up #230

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

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new c052cee  temporary build folder not cleaned up #230
c052cee is described below

commit c052ceefce8787596e1ad676111792cb52e3d8d9
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Tue Nov 20 11:22:06 2018 +0100

    temporary build folder not cleaned up #230
---
 pkg/builder/builder.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/builder/builder.go b/pkg/builder/builder.go
index 430933b..0877e27 100644
--- a/pkg/builder/builder.go
+++ b/pkg/builder/builder.go
@@ -134,7 +134,7 @@ func (b *defaultBuilder) submit(request Request) {
 		r.Error = err
 	}
 
-	os.RemoveAll(builderPath)
+	defer os.RemoveAll(builderPath)
 
 	// update the cache
 	b.request.Store(request.Identifier, r)