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

Declare dependency on json 2.4.0+ #3140

Closed
wants to merge 1 commit into from

Conversation

byroot
Copy link
Contributor

@byroot byroot commented Nov 6, 2024

If the gems use JSON.load_file and are compatible with Ruby >= 2.5 they must declare that they require json 2.4.0 otherwise they may get a much older version.

cc @jterapin, I don't know this project enough to know if aws-sdk-core is the right gemspec to add the dependency to, but that should solve your issues.

@byroot
Copy link
Contributor Author

byroot commented Nov 6, 2024

Ah, I see. The gemspec isn't loaded by the Gemfile, so that dependency doesn't surface, and need to be repeated there too.

If the gems use `JSON.load_file` and are compatible with Ruby >= 2.5
they must declare that they require `json 2.4.0` otherwise they may
get a much older version.
@@ -2,6 +2,8 @@

source 'https://rubygems.org'

gemspec path: "gems/aws-sdk-core/"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should hopefully do the trick.

@byroot
Copy link
Contributor Author

byroot commented Nov 6, 2024

🍏

@jterapin
Copy link
Contributor

jterapin commented Nov 6, 2024

Hi! Due to the structure of how we run specs that involves load_file and the Ruby SDK team discussion, we decided to pin the dependency. Thank you for all your help! ✨

@jterapin jterapin closed this Nov 6, 2024
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 this pull request may close these issues.

2 participants