Open nandorholozsnyak opened 2 years ago
Yeah. That's an oversight. We already have a resolver for local templates in classpath so just need to extend it to resolve relatively to Origin for the template.
You want to give a go on making a pr for it ?
Sounds cool. I'm already having an open PR for weeks now :D Nowadays I'm so busy, I would not say it is so super urgent, but in the upcoming days I will not have time for it, but I would be curious about the implementation.
Describe the bug If a template is having Qute #includes in it, at initialization JBang will not be able to resolve the dependency templates.
Example template file with includes, of course it works "localy" but if you are not having the files locally it will not be able to resolve it. https://github.com/nandorholozsnyak/jbang-cloud/blob/main/aws/aws-lambda.java.qute
https://github.com/nandorholozsnyak/jbang-cloud/blob/main/aws/header.java.qute https://github.com/nandorholozsnyak/jbang-cloud/blob/main/aws/body.java.qute https://github.com/nandorholozsnyak/jbang-cloud/blob/main/aws/input.java.qute https://github.com/nandorholozsnyak/jbang-cloud/blob/main/aws/output.java.qute
To Reproduce
Expected behavior I think JBang should be able to resolve remote files that are included in the templates as dependencies.
JBang version [jbang] jbang version 0.92.2