Actions
Bug #24938
openGeneration does not verify that string template source files exists
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
In a technique, if I reference a template file, commit a file matching its destination (OUTPATH) but forgot to commit the source of the template, the generation will succeed and deploy the commited file found at OUTPATH.
The generation should verify that both source and destination exist when using templates.
To reproduce, for instance with a windows directive:
<TML name="windows/System-UpdateCampaignCore.ps1"> <INCLUDED>false</INCLUDED> <OUTPATH>windows/System-UpdateCampaignCore.ps1</OUTPATH> </TML> </TMLS>
Add this to an existing technique, and commit an empty file under "windows/System-UpdateCampaignCore.ps1" and do not commit one named "windows/System-UpdateCampaignCore.ps1.st" (the expected source).
The generation will succeed.
Actions