-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
It is not clear that require "<plugin>"
should not be used in stages; warning doesn't help
#1905
Comments
Thanks for picking this up @mattbrictson - maybe we should simply prevent the behaviour and exit with a fatal error. Something akin to the growing trend of making compiler warnings fatal.
Maybe we simply blow up if someone reaches that line, and explain why? |
Yes, this warning has been in Capistrano for a few versions now, so it is probably safe to promote it to a fatal error. Ideally it would also print the offending file and line number (e.g. in |
Looks like this blows up already. Is there more to do on this ticket? https://github.com/capistrano/capistrano/blob/master/lib/capistrano/immutable_task.rb#L25 |
Maybe the thing to do here is to change |
Clarify message when require is in wrong config file. Fixes #1905
From @ethicalmohit in #1904 (comment)
I was confused with the below message, As which plugin it is taking about and was ignoring it almost because it says its just a warning. It says that the problem is with deploy.rb, I was looking into it. [The offending file was actually
deploy/dev.rb
(a stage).] Later on, I tried adding another thing which required many other plugins to be included in Capfile and it works. It seems to be the convention than a rule.The text was updated successfully, but these errors were encountered: