-
Notifications
You must be signed in to change notification settings - Fork 613
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
Rake executes file task when prerequisites have older timestamp #246
Comments
I can reproduce the same issue. Working on a fix for this. |
There's an opened PR attempting to fix this #251 |
Second attempt at fixing this one here #257 |
Was a fix for this bug ever merged? I've run into it today and it would be great if it could be fixed. |
Maybe this is precisely the use case of Phony tasks: https://ruby.github.io/rake/doc/rakefile_rdoc.html#label-Phony+Task |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a file task depends on some non-file task indirectly,
Rake executes the file task even if its immediate prerequisite files have older timestamp.
It looks like the behavior changed at 12.1.0.
Example
Based on the above Rakefile, clean up and create the "component" first.
The next
rake component
results in different behavior as follows.On 12.0.0:
On 12.1.0:
The text was updated successfully, but these errors were encountered: