generatedFiles alternative in bonsai
# 🌱|help-and-getting-started
Hey there! We are migrating 0.12* configs to the latest 0.13 bonsai version and got an issue with
. We need to create a few files before module build is started. Generated files will then be used during module build process. In 0.12* we used to use
feature. In Bonsai I have tried to use Run action of type exec with the appropriate commands to create the files we need. The files are actually created, but a bit late in the process - they are created in the
, but not copied over to the
. Would appreciate any ideas on how can we inject newly generated file in the build process. Here is a extract of the test garden.yml I'm playing with:
Copy code
kind: Run
type: exec
name: testbuild
    shell: true 
    command: ["echo '${var.private_file_content}' > ./tmp/private_file"]
kind: Build
type: container
name: testbuild
    - Run.testbuild
Hey @plain-advantage-45962 really sorry about the delay here: it's not usually like us! Have you tried instead using an
Build as detailed at ?
That would allow you to do whatever generation you'd need to. The dependent action would then use the source path of the exec Build for its own, which should ensure files are generated before execution.