You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implicit dependency test.pre is not built automatically
In a folder containing only this Rakefile, try:
$ raketouch test0.precp test0.pre test0.txtcp test.pre test.txtcp: cannot stat 'test.pre': No such file or directoryrake aborted!Command failed with status (1): [cp test.pre test.txt...][...]
This creates test0.pre and test0.txt, but fails to create test.pre and test.txt.
However, the following sequence of commands works without issues:
Uh oh!
There was an error while loading. Please reload this page.
Consider this
Rakefile
:This
Rakefile
demonstrates 2 related issues.The implicit dependency
test.pre
is not built automaticallyIn a folder containing only this
Rakefile
, try:This creates
test0.pre
andtest0.txt
, but fails to createtest.pre
andtest.txt
.However, the following sequence of commands works without issues:
Thus,
rake
knows how to buildtest.pre
, but skips it unless asked explicitly.Note that despite skipping
test.pre
,rake
buildstest0.pre
automatically, while both are dependencies by the same rule.In fact, starting from a folder containing only this
Rakefile
,rake test0.txt
works,rake test.txt
fails.Updating
test.pre
does not trigger rebuilding oftest.txt
Assume that everything has been built with
Now, try this:
Nothing happens.
Now, try:
This triggers rebuilding.
Rake version
rake
version:13.0.6
.The text was updated successfully, but these errors were encountered: