-
Notifications
You must be signed in to change notification settings - Fork 167
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
Watches with ruby 2.7 fails modifying a frozen string #442
Comments
This appears to have been fixed in http v4 which upgrading to kubeclient v4.5+ allows, we just happen to be stuck for now on 4.3.0. Going to close this since this isn't an issue on the most recent version |
Thanks! Reopening to decide if I can bump dependencies (maybe only in 5.0) to guarantee 2.7 compatibility... |
I haven't managed to reproduce yet on http 3.3.0, but your analysis is right. Ruby 2.7 pre-release experimented with a more radical change making Symbol#to_s return frozen strings but that broke too much and was reverted; http issue httprb/http#582 (comment), fix released in http 4.3.0. |
Thanks for following up @cben ! |
hmm, 4.0 dropped ruby 2.2 support, which is again ancient EOL but now I feel worse about dropping it in kubeclient before 5.0 🤔 🤷 |
It is up to you, but now that we (MIQ) have moved to kubeclient 4.6 and are able to use a newer http gem we are no longer blocked by this. Perfectly happy to wait until 5.0 for you to require a newer http gem version. |
When using watches with ruby 2.7 fails when modifying a frozen string
While debugging this I found that here
chunk
is""
and is frozen. It is the result of here withchunk
beingnil
andnil.to_s.frozen?
istrue
The text was updated successfully, but these errors were encountered: