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

Vault gem not installing in Ruby 2.3.1 due to aws-sigv4 dependencies #313

Closed
kumar1202 opened this issue Nov 23, 2023 · 1 comment · Fixed by #314
Closed

Vault gem not installing in Ruby 2.3.1 due to aws-sigv4 dependencies #313

kumar1202 opened this issue Nov 23, 2023 · 1 comment · Fixed by #314

Comments

@kumar1202
Copy link
Contributor

kumar1202 commented Nov 23, 2023

The vault gem uses the aws-sigv4 gem in the gemspec and has not been locked.

Yesterday, the vault gem started failing in Ruby 2.3 when the aws-eventstream and aws-sigv4 gems were upgraded to 1.3.0 and 1.7.0 respectively.

Although, the README says that Vault is still is supported in Ruby versions >2.0.0. The release of aws gems used as dependencies are breaking the vault in EOL Ruby environments.

Locking the aws-sigv4 version to the earliest available versions also won't help because the aws-eventstream lock was introduced as '~> 1.0', '>= 1.0.2') here which still points to the latest version and eventually breaks on Ruby 2.3.

The solution is to lock, aws-sigv4 to 1.6.0 and aws-eventstream to 1.2.0 for Ruby versions < 2.4.0 in the vault.gemspec.

@kumar1202
Copy link
Contributor Author

kumar1202 commented Nov 30, 2023

We are still not able to install the gem on Ruby 2.3 when the source is RubyGems, as it didn't create the dependencies correctly. -> https://rubygems.org/gems/vault/versions/0.18.2

~# /opt/chef/embedded/bin/ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

~# /opt/chef/embedded/bin/gem install vault
Fetching: aws-eventstream-1.3.0.gem (100%)
ERROR:  Error installing vault:
    aws-eventstream requires Ruby version >= 2.5.

 
 As it looks like the parsed gemspec is being parsed by a Ruby parser > 2.4

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