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
Delayed target regex #58
Conversation
…ault regex for all delayed task loaders which didn't explicitly specified one.
I think the remaining failed test isn't my fault. The problem seems to be that the test task has no action. Replacing |
Actually there are several issues with this implementation. I had not noticed you used |
Yeah, My original plan is as follows:
That should minimize the number of targets which have to be built until the target is found (and at the end we know whether all requested targets have been built, and if not, an error could be emitted). This (probably) requires some deeper changes at least in |
I merged this, please check if it works as expected for you. Although I already merged there are 2 pending issues:
It should be:
|
I also get that exception if I the file is created by a delayed task: assume you have two delayed tasks, I had the problem during building a blog, which creates of course a way more complex set of tasks, but I think it boils down to this problem. I can also re-create this with the nikola demo site and nikola's
|
(Actually, that was why I used |
Yes, it seems to work fine now (after some quick tests). Thanks a lot for implementing and fixing :) |
Allows to specify regexes for delayed task loaders, which allows to specify targets of delayed tasks with
doit run
.If there is more than one regex matching a target, creates a task which has all potential tasks as a dependency and adds it to the list of selected tasks. This allows to specify any target created by a DelayedTask as long as it provides a regex which matches the target name.
There's an option to doit run called --auto-delayed-regex which takes '.*' as a regex for every delayed loaded task for which no regex is specified explicitely.
fixes #20