To be fair, there are definitely optimizations that can be made in the future. For example, keeping a cache of the source repo contents between iterations of copying deps. That said, I think the overall pattern is still the best choice, unless you have another suggestion.