My goal is to share source files between some machines, but not all. In this example, machine_a and machine_b have source directories that are exact copies of each other an I'd like to combine them together somehow to reduce the duplication.
recipe/
machine_a/
script_1.sh
script_2.sh
machine_b/
script_1.sh
script_2.sh
machine_c/
script_3.sh
I've tried symbolically linking machine_b/ to machine_a/ as well as linking the individual source files (machine_b/script_1.sh -> machine_a/script_1.sh etc) but the problem is that since the build is done in a docker container and the do_fetch() task doesn't perform a deep copy, the build can't access the original source file.
I can think of other ways like changing MACHINE_NAME inside the recipe, but I don't think that'd work cleanly.
What's the best way to accomplish this?