-
Notifications
You must be signed in to change notification settings - Fork 295
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
MsgpackHandle.RawToString in composite literal no longer works #290
Comments
Thanks for filing this. This is limited to
I can try to re-introduce the RawToString field directly in MsgpackHandle and hack it so that it is kept in sync with the value in DecodeOptions. But I don't want to do that unless there is a clear need for it. If the user base is small and we can get the users to make changes to accommodate, then it may not be worth bastardizing it. Can you point to the package(s) that uses this, and let me see if they are willing to make changes to their code? We will also keep this bug open for a bit to see who else clamors for it. |
RawToString
breaks API
I was directly impacted by this while developing a product based on https://github.com/gammazero/nexus. I have an accepted PR that addresses this: gammazero/nexus#168 but no release has been made. It was only an issue for me at the time due to the issue I raised in #291. I have since decided that modules is a feature not ready for prime time and have gone back to dep, which does properly determine which version of this package to use based on the I agree that it is not a huge deal, it was only made an issue for me by the problem presented by #291. |
Ok. Let's leave this open for some weeks and see who else expresses issues with it. We may also be able to get at a more robust solution. Thanks. |
Thanks @dcarbone . I am ok with closing it. Thanks. |
This commit: a70535d breaks backwards compatibility for anybody who attempted to construct
MsgpackHandle
as a literal.Take this example code:
Prior to this commit, this worked as expected. Now, however, this no longer works as the location of
RawToString
has been moved to reside withinBasicHandle
, which in turns embedsDecodeOptions
, which finally has theRawToString
field.This is not the end of the world if you are the direct maintainer of the above code, but when the codec package is only included as a dep of a dep, this becomes a problem.
The inability to properly constrain this repo to 1.1.2 due to package structure only exacerbates this issue.
The text was updated successfully, but these errors were encountered: