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

Explicitly require base64 to fix missing constant with net-ssh 7.2.2+ #532

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

mattbrictson
Copy link
Member

sshkit needs Base64 for its implementation of the known hosts file parser.

Before, we were relying on net-ssh to load Base64 for us. But starting in net-ssh 7.2.2 (which was yanked), net-ssh no longer depends on the base64 gem. That means sshkit can no longer assume it will be present and loaded.

This PR fixes compatibility with net-ssh 7.2.2+ by doing the following:

  • require "base64" to ensure the Base64 constant is defined
  • Add base64 as a runtime dependency so that the library is guaranteed to be present

Fixes #531

@mattbrictson mattbrictson added the 🐛 Bug Fix Fixes a bug label Apr 1, 2024
@mattbrictson mattbrictson force-pushed the require-base64 branch 2 times, most recently from 73ec4d8 to d208139 Compare April 1, 2024 21:02
@mattbrictson mattbrictson marked this pull request as ready for review April 1, 2024 21:09
@mattbrictson mattbrictson merged commit 78e9946 into master Apr 1, 2024
16 checks passed
@mattbrictson mattbrictson deleted the require-base64 branch April 1, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sshkit broken with net-ssh 7.2.2
1 participant