-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
jmespath and JSON::Pure::Generator::State #1150
Comments
Version 1.2.3 is out, this issue should provide more context: jmespath/jmespath.rb#20 Let me know if this helps. |
Hey there, Yep, that release does indeed resolve the issue - as does hacking in a Cheers, |
Sorry about the trouble, glad the new release solves the issue. Closing this for now, let us know if you have any other issues or questions with this. |
Will it be possible to consider stricter version pinning? |
@musiaht Do you mean stricter pinning against jmespath or in jmespath against the json gem? |
@trevorrowe Not @musiaht but I'd guess that he may be referring to the pinning between |
@trevorrowe I meant pinning against jmespath; but after reading and jmespath/jmespath.rb#18 jmespath/jmespath.rb#20 more carefully, I'm not sure if that's going to help. Thanks for your help |
Hey there,
We have had a situation in the last 24 hours, where a 'breaking' change was introduced into the
jmespath
dependency foraws-sdk-core
. As a result, some internal deployment scripts which utilizeaws-sdk-core
were failing to properly serialize Hashes which contain FixNums into JSON.As an example, the Hash in question contains an element where the value is seconds since epoch (which has been mocked below):
When this was attempted to be serialized using
JSON.pretty_generate
, it was failing with something along the lines of the following:Looking at the Gemspec for
aws-sdk-core
, it appears that this package has a 'twiddle-wakka' set to 1.0 forjmespath
. As a result of this 'pessimistic' version pin, the new 'breaking' version ofjmespath
was pulled in to a pinned version of theaws-sdk-core
and starting wrecking havoc.The version of
jmespath
where we started seeing issues was 1.2.2 - which was released about 19 hours ago. It looks like as part of this release,json_pure
was depended upon rather thanjson
. This change seems to be where our problems were caused (due to some 'weirdness' withjson_pure
and FixNum).Is there any plan to have a 'stronger' version pin on this dependency? This has caused us a number of pre-coffee hair-pulling moments this morning, and a late night for at least one of our guys yesterday. If not, hopefully this issue with help others seeing similar issues over the last 20 hours or so! :)
Cheers!
Peter
The text was updated successfully, but these errors were encountered: