Allow targets with format = "file" that sometimes do not create a file #728
-
My pipeline has a dynamic target that generates a bunch of files, but possibly none. In the case when one of the branches generates no files, the pipeline stops with the following error:
The documentation says it is the intended behaviour indeed for external output files:
A pain point in that case is it does not seem to be an error in the target but a failing assertion of the targets package itself so it is very complicated to find out which branch did not create any file: I thought of a solution which sounds more like a hack: always creating a dummy file in addition to the possible real ones, and then filter it out of the list of paths in a child target. Would it be possible to allow targets that might not create any files or just empty directories? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is actually doable. Implemented in 08cd054. Empty file targets can now return |
Beta Was this translation helpful? Give feedback.
This is actually doable. Implemented in 08cd054. Empty file targets can now return
character(0)
.