-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
issues on handling multiple matches delayed target regex #60
Comments
Isn't the second also true when |
Right, it happens as long as the typo matches a regex. With |
I'm not sure if you are aware of this, but the current version still builds too much in some situations. Consider the dodo file (slight modification of import glob
from doit import create_after
@create_after(executed='early', target_regex='.*\.out')
def task_build():
for inf in glob.glob('*.in'):
yield {
'name': inf,
'actions': ['cp %(dependencies)s %(targets)s'],
'file_dep': [inf],
'targets': [inf[:-3] + '.out'],
'clean': True,
}
@create_after(executed='build', target_regex='.*')
def task_final():
return {
'actions': ['cp a.out a.out.2'],
'file_dep': ['a.out'],
'targets': ['a.out.2'],
'clean': True,
}
def task_early():
"""a task that create some files..."""
inter_files = ('a.in', 'b.in', 'c.in')
return {
'actions': ['touch %(targets)s'],
'targets': inter_files,
'clean': True,
} will build |
@felixfontein I guess this finally completed. Please check again everything is working as expected. |
Cool! Thanks a lot for implementing most parts of this feature! :) |
Oh, one thing (completely unrelated!) which I just noticed: if I run
Obviously, running |
Sure. go ahead :D |
I created a new issue to track this #71 |
Refers to tasks missing from PR #58
--auto-delayed-regex
is used, if a target that doesnt exist (or a typo) is passed in the command, it will be silently ignored. It should raise an error saying the target/task/command doesnt existThe text was updated successfully, but these errors were encountered: