aws-sdk-ruby icon indicating copy to clipboard operation
aws-sdk-ruby copied to clipboard

Gem displays deprecation warning in ruby 3.3

Open nathansamson opened this issue 4 months ago • 7 comments

Describe the bug

When running the gem in ruby 3.3 it displays the following warning

/home/nathansamson/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/aws-sdk-core-3.191.1/lib/aws-sdk-core/assume_role_web_identity_credentials.rb:5: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec. Also contact author of aws-sdk-core-3.191.1 to add base64 into its gemspec.

Expected Behavior

It should not do this

Current Behavior

It displays a warning in ruby 3.3

Reproduction Steps

Use the gem

Possible Solution

Include base64 in the gemspec

Additional Information/Context

No response

Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version

aws-sdk-core:3.191.1

Environment details (Version of Ruby, OS environment)

Ruby 3.3, linux

nathansamson avatar Feb 11 '24 10:02 nathansamson

Hi! Thank you for opening the ticket. We are planning to make an update to address this (TBD when).

jterapin avatar Feb 12 '24 15:02 jterapin

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Feb 12 '24 18:02 github-actions[bot]

For history - this change is reverted by https://github.com/aws/aws-sdk-ruby/pull/2987

And basically ruby-3.3 have deprecation warning again

VitaliySerov avatar Feb 22 '24 18:02 VitaliySerov

Adding these libraries (base64 and bigdecimal) as explicit dependencies causes issues for some existing users and so, to address that we rolled that change back to remove those dependencies.

We will need a comprehensive strategy to address support in 3.4 without causing breaking changes for existing cases.

alextwoods avatar Feb 22 '24 18:02 alextwoods

Re-opening for now.

mullermp avatar Feb 22 '24 20:02 mullermp

Can we include conditional (based on the ruby version) dependencies in the gemspec file, or is that not supported?

nathansamson avatar Feb 22 '24 20:02 nathansamson

I don't believe so, we investigated doing that.

mullermp avatar Feb 22 '24 20:02 mullermp