Task is not tracking deleted generated files
Hello, I think I found the case to reopen this issue:
https://github.com/go-task/task/issues/238
I want the Task to re-trigger
gen
, when I'm running clean
:
5 Replies
Thats strange. The issue states it should track deleted files, but not edited, IIUC.
@sedyh That should work. Do you confirm that it is not really working?
Hello. I've managed to reproduce the issue. Let me show you a better example:
The question is why task is up to date after deleting a directory with a file (
pkg/protocol/core/important.pb.go
) that matches pkg/protocol/**/*
pattern?
Probably related:
https://github.com/go-task/task/pull/1816
@andreynering (sorry for ping)@sedyh IIRC Task will just force the task to run if all generated files are deleted. It seems that yuo deleted one of the files but there is still one left there.
Can we make the Task to restart the task in this case too?
It seems to me that generated files really needs a full-fledged fingerprinting.