nck
nck
TTask
Created by nck on 6/3/2024 in #help
Working out why a task with sources and generates is considered up to date
I have a task that looks something like:
zip_foo:
deps: [update_target]
sources:
- "{{ .TARGET_DIR }}/**"
generates:
- foo.zip
cmds:
- zip -r foo.zip {{ .TARGET_DIR }}
zip_foo:
deps: [update_target]
sources:
- "{{ .TARGET_DIR }}/**"
generates:
- foo.zip
cmds:
- zip -r foo.zip {{ .TARGET_DIR }}
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?
3 replies