Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #626.
An explicitly declared file task with no action can take its action from a matching rule. Previously Rake attached that rule in
execute: too late to build a missing rule source or even to notice that the source was newer than an existing target.Run the explicitly declared prerequisites first (they may create a source that selects the rule), then invoke only the prerequisites introduced by the rule before checking whether the target is up to date. This uses the same serial or parallel prerequisite invocation path as normal tasks.
Regression coverage includes building a missing source via another rule, rebuilding when only the rule source changes, and selecting a rule whose source is created by an explicit prerequisite. The first two tests fail on upstream master before the fix.
Tested on macOS with Ruby 4.0.1: full Rake suite (609 tests, 1,476 assertions); RuboCop (97 files, no offenses).
AI assistance: OpenAI Codex was used to diagnose the issue, implement the change and run the tests.