Working out why a task with sources and generates is considered up to date
I have a task that looks something like:
After the first time I run the task, it always claims that it is up to date, even though the
update_target
task runs and changes the contents of the target directory. I'm stuck trying to work out why it isn't updating. Is there a way to check what is being hashed and why it isn't consided out of date?2 Replies
The generated hash is stored in the
.task
directory. However, there is no way to see which files this hash represents. The behaviour that you're describing shouldn't be happening though. I created a full example similar to yours that seems to work fine
I got it working with a change to sources to glob
{{ .TARGET_DIR }}/**/*
, then it behaves as expected. Having some way to find out what it's really hashing would probably have made that obvious.