#Hey folks. Diving a bit into Dagger
1 messages ยท Page 1 of 1 (latest)
This first entry in the cookbook should be helpful: https://docs.dagger.io/cookbook
This shows how you can mount a directory to a container spawned by the Dagger engine container. What I'm aiming for is mounting the directory to the Dagger engine container itself, since I need golang to process the directory
@sturdy sequoia I think this is what you're looking for:
#1270414770402627656 message
^ as you can see from that code, I pass a File to my module function, I Export that file to the module runtime container, and then I can just use native go (or go-git ) functions to read from those files as if they were local
cc @spark maple cookbook material
I'm a bit confused. I thought that Export writes to the host (at least that's what the docs say)
when you're using dagger modules, if you call Export withing your pipeline code, that exports it to the "runtime container"
which will be the Go runtime in your case