That makes sense @spring ferry . For coverage reports or other artifacts I could generate a file for further processing. I guess I just feel a bit disconnected from my code. For example right now I'm trying to work with this Helm package, to create a file and export it to the host's OS. The file doesn't exist, the execution looks OK but I don't know whats wrong:
@function
def build_helm(self, source: dagger.Directory) -> dagger.File:
return dag.helm().chart(source).package().file()
@function
async def export_helm(self, source: dagger.Directory, helm_package: str) -> bool:
packaged_file = self.build_helm(source)
return await packaged_file.export(helm_package)
The call to ...package().file() is supposed to return a dagger.File (https://daggerverse.dev/mod/github.com/sagikazarmark/daggerverse/helm@d814d0d7c421348f51cdda96870a05ca2aa8e96a#Package.file) and I am expecting that file to get copied to my OS via File.export. When executing I get the output:
dagger call export-helm --source=./console-chart --helm-package=./my_helm_package.pkg -v
✔ connect 2.7s
✔ starting engine 2.1s
✔ create 2.1s
✔ exec docker start dagger-engine-340fc17822076376 0.2s
┃ dagger-engine-340fc17822076376
✔ connecting to engine 0.5s
✔ starting session 0.2s
✔ initialize 9.4s
✔ prepare 0.1s
✔ ModuleSource.resolveFromCaller: ModuleSource! 0.0s
✔ ModuleSource.resolveDirectoryFromCaller(path: "./console-chart"): Directory! 0.0s
✔ sstConsoleService: SstConsoleService! 1.2s
✔ SstConsoleService.exportHelm(
helmPackage: "./my_helm_package.pkg"
source: ✔ ModuleSource.resolveDirectoryFromCaller(path: "./console-chart"): Directory! 0.0s
): Boolean! 5.5s
true
I can't find the file anywhere on my OS and other than asking for help in this forum I don't know how I should be addressing this