-
Notifications
You must be signed in to change notification settings - Fork 254
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
any?
wrong number of arguments upon upgrading 1.10.0 -> 1.11.1
#359
Comments
@xavierholt Looks like we have a bug where |
Crash happens here: https://github.com/capistrano/sshkit/blob/v1.11.1/lib/sshkit/host.rb#L84 |
@PatrickatPaperlessPCS are you setting |
@mattbrictson: It's possible that someone's using |
Found it. Whatever object is stored as https://github.com/capistrano/capistrano/blob/master/lib/capistrano/dsl/env.rb#L16 |
@mattbrictson No, I dont have any keys in production.rb or server configs. |
@xavierholt Right, it is The big question is why is Before #350 was merged, we had this: def keys
Array(@keys)
end So that effectively protected us from Array(nil) # => []
Array("foo") # => ["foo"] The brute force fix is therefore to restore that I'm stumped! |
@PatrickatPaperlessPCS Can you run |
Oh - didn't realize that was mixed into all objects; thought it was a clue as to what was getting assigned there. I support the brute force fix. There's no type checking on |
@xavierholt If you would like to propose a PR with the brute force fix, I will merge it in. @PatrickatPaperlessPCS I'd still like to see your Thank you both! |
Haven't heard back from the OP, so I will consider this fixed by #359. |
I have a rails app that I've used Capistrano to deploy with several times. I did a fairly major update on the app that included an update of Capistrano-rails from 1.1.6 to 1.1.7 and SSHkit from 1.10.0 to 1.11.1. Now my
cap production deploy
fails with what seems like an sshkit issue.Here's my error output:
See this question on stackexchange also
Update:
I switched back to 1.10.1 globally and worked around the problem for now
The text was updated successfully, but these errors were encountered: