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
--dry-run sets both nowrite(false) and options.dry_run = true. The thing is, so long as options.dry_run == true, Task execution short-circuits before it ever gets to execute any FileUtils methods.
So the question is... does nowrite/noopever take effect?
The only way I can find to get Rake to tell me what it would do (without doing it) is:
$ rake -E 'Rake.nowrite(true)'
(That's the behavior I expected from --dry-run, honestly.)
So... are the noop/nowrite branches effectively dead code? Or am I missing something?
The text was updated successfully, but these errors were encountered:
--dry-run
sets bothnowrite(false)
andoptions.dry_run = true
. The thing is, so long asoptions.dry_run == true
, Task execution short-circuits before it ever gets to execute any FileUtils methods.So the question is... does
nowrite
/noop
ever take effect?The only way I can find to get Rake to tell me what it would do (without doing it) is:
$ rake -E 'Rake.nowrite(true)'
(That's the behavior I expected from
--dry-run
, honestly.)So... are the
noop
/nowrite
branches effectively dead code? Or am I missing something?The text was updated successfully, but these errors were encountered: