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

SFTP transfer does not work with Ruby 2.0 #528

Closed
mattbrictson opened this issue Dec 31, 2023 · 1 comment · Fixed by #529
Closed

SFTP transfer does not work with Ruby 2.0 #528

mattbrictson opened this issue Dec 31, 2023 · 1 comment · Fixed by #529

Comments

@mattbrictson
Copy link
Member

When I try to enable functional tests in our CI matrix (#522), I see that the new SFTP implementation added in #524 fails on Ruby 2.0:

NoMethodError: undefined method `size' for #Net::SFTP::Operations::File:0x007fcb8982f648

@mattbrictson
Copy link
Member Author

I believe this is because modern versions of net-* do not support older Rubies, so Bundler resolves to net-sftp v2.1.2, which does not have the File#size method. We should be able to use this instead: file.stat.size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant