#or, if you want just scratch data that's
1 messages · Page 1 of 1 (latest)
Is there an example handy in dagger source of its implementation, by chance?
(CurrentModule.Workdir)
here's a test where we use it:
https://github.com/dagger/dagger/blob/b966257dbc24b714e6ee39f01158f10f8fa24fd3/core/integration/module_test.go#L4466-L4477
is that kind of what you meant?
yes, that example was exactly what i needed.
got my example working about 2 seconds after reading your test 😄
❤️
It turns out I actually wanted CurrentModule().Source()... what is the difference? In my case I wanted to reference an actual file in the source of the module. What would I use Workdir for, alternatively?
Workdir is to ingest files created by a native library imported by your function, for example