Skip to content
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

rule does not accept prereqs with Symbol names #349

Closed
jasonkarns opened this issue Apr 18, 2020 · 0 comments · Fixed by #350
Closed

rule does not accept prereqs with Symbol names #349

jasonkarns opened this issue Apr 18, 2020 · 0 comments · Fixed by #350

Comments

@jasonkarns
Copy link
Contributor

It is common for non-file-based tasks to be given names as symbols. It is also common to use symbols as the names of prereq tasks. However, when attempting to define a rule which has non-file-based prereqs, rule will not accept Symbols as prereqs.

task :nonfile

rule ".json" => ['%d', :nonfile] do
end

The output is:

rake aborted!
Don't know how to handle rule dependent: :nonfile

The cause of the error is traced to TaskManager where Symbol is not a valid case match.

when String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant