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

Enhancement: Document and add a command line option to show all implicit rules #540

Open
apatniv opened this issue Jan 29, 2024 · 0 comments

Comments

@apatniv
Copy link

apatniv commented Jan 29, 2024

We can easily verify that a file task is synthesized whenever rake finds that user provided task doesn't match any defined tasks and there is file with that name.

How to reproduce

# create an empty rakefile 
(ins)-> touch rakefile

# Try to execute hello_world task
ins)-> rake hello_world
rake aborted!
Don't know how to build task 'hello_world' (See the list of available tasks with `rake --tasks`)

(See full trace by running task with --trace)

# create a file by name hello_world and task which failed previously will succeed now. 
(ins)-> touch hello_world
(ins)-> rake hello_world

I feel this behavior should be documented and possibly a new command line option can be added. This new option will list all implicit rules just like how make does it.

@apatniv apatniv changed the title Enchancement: Document and add a command line option to show all implicit rules Enhancement: Document and add a command line option to show all implicit rules Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant