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

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 2561d1e0 Workaround for CAMEL-21004
2561d1e0 is described below

commit 2561d1e075502e074a17fb7b0485a3eb5dcf9906
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Mon Jul 22 10:52:54 2024 -0400

    Workaround for CAMEL-21004
---
 karavan-vscode/src/jbang.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/karavan-vscode/src/jbang.ts b/karavan-vscode/src/jbang.ts
index a8e9c207..3b2a1a1c 100644
--- a/karavan-vscode/src/jbang.ts
+++ b/karavan-vscode/src/jbang.ts
@@ -64,7 +64,8 @@ export function createExportCommand(fullPath: string) {
     const kameletsPath: string | undefined = 
workspace.getConfiguration().get("Karavan.kameletsPath");
     const cmd = "export --fresh " 
         + (fullPath ? " --directory=" + fullPath : '')
-        + (kameletsPath && kameletsPath.trim().length > 0 ? " 
--local-kamelet-dir=" + kameletsPath : "");
+        + (kameletsPath && kameletsPath.trim().length > 0 ? " 
--local-kamelet-dir=" + kameletsPath : "")
+        + " --runtime=" + utils.getRuntime(); // workaround for 
https://issues.apache.org/jira/browse/CAMEL-21004
     return prepareCommand(cmd);
 }
 

Reply via email to