-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't create empty file #36
Comments
I'm getting an empty file after a concat. How to debug it? |
@renege I have the same thing. Similarly, no idea. |
I think this can be argued both ways. Some may have builds that conditionally include content and want empty files created; some, like yourself, would prefer not. With the current setup, you can use For some precedence, A workaround, would be to write a task that checks if given files are empty and delete them. Then put that task any place as needed.
|
true. It sounds that both use cases are valid. could this be an independent option? i.e: |
If no source files are matched, prevent the creation of an empty destination file.
The
nonull
option is great if you want to error-out when src is empty, which is desirable for debugging situations. But it seems more reasonable (for non debug scenarios) to simply not create the destination file.Creating an empty file (or file with nothing but banner) doesn't seem like it would ever be the expected result. The only two scenarios I would expect when src file(s) is empty are:
nonull
)The text was updated successfully, but these errors were encountered: