Skip to content

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

Merged
mattbrictson merged 3 commits into
masterfrom
require-base64
Apr 1, 2024
Merged

Explicitly require base64 to fix missing constant with net-ssh 7.2.2+#532
mattbrictson merged 3 commits into
masterfrom
require-base64

Conversation

@mattbrictson

Copy link
Copy Markdown
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
@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