Hi all, I am trying to figure out, when doit is not executing an action. I thought I understood this from the tutorial, that it won't execute an action of the target exists (no check for change) and the dependencies have changed or are removed.
But when I use the example from the tutorial, it is always executed although the target exists. The [dodo.py]
DOIT_CONFIG = {
'verbosity': 2
}
def task_hello():
"""hello"""
def python_hello(targets):
with open(targets[0], "a") as output:
output.write("Python says Hello World!!!\n")
return {
'actions': [python_hello],
'targets': ["hello.txt"],
}
After the first run the file hello.txt (and the database etc.) is created, so I assumed in the next run it won't be executed, but it is everytime I run doit.
I am using Python 3.7.6 (Windows 10) and doit (0, 32, 0). And I am starting doit on the commandline>python -m doit
Obviously I am missing something, but I cannot see what. Thanks in advance.