Draft: fix(template): fix substitutions applied to the wrong targets
For context see: rules_labgrid#101
- Cleaned up the error message to display as
Error in fail: No match found for `darwin`: struct(linux = "Linux", macos = "Darwin", windows = "Windows")
- Fixed the above issue by only resolving substitutions when that are required by the repository.
Edited by Luke Hackwell