I don't get it ๐
I'm trying to create files as normal, such as os.WriteFile, and then at the end of this export the artifact directory I dump all my various files.
This doesn't seem to work.
Instead I seem to only get results with specifying directory withfile and having to create.
- My code doesn't need any other containers, no exec, pure Go SDK code.
- I want to output files to
/tmp/artifactswhich I've tried creating via standard go code and with dagger.Directory.
One of my steps can't provide string content for file, as binary, so trying to provide the content via WithNewFile works but corrupts it.
I'll provide some code below, can you help?
All the examples in the cookbook don't seem to handle raw Go code seem to focus more on invoking wrapped calls with container. I want to use pure Go and have dagger execute.