Runtime should default missing output files
carolynvs opened this issue · 0 comments
carolynvs commented
A last minute spec clarification was put in that affects the runtime implementation in cnab-go. cnabio/cnab-spec#270
All outputs that apply to a specified action are considered to be required. If an output is missing at the end of an action, and a default is defined, the runtime should write the default to the file specified by the
path
attribute. Otherwise the runtime should report the missing output as an error to the user.
Right now we expect all outputs to exist when we fetch them and return an error when one doesn't exist. The change needed is to detect when the output file is missing, and to create it with the default defined on the output, if specified.