-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Exposed the value
accessor in Context
#741
Conversation
dbcdbe4
to
b07c0fe
Compare
Not sure why? I've written something simillar and not sure I needed that. |
👋 @corruptmemory if you're still interested in this PR, can you respond to AudriusButkevicius's comment above? If not - feel free to ignore this ping, and we can close the PR so it won't become stale. |
actually, it's not a unreasonable change. I am using reflection on the destination, and then based on that I pick the "getter", so it's reasonable to want to do the inverse. |
Nice to see some life coming to the PR. I'll rebase and push sometime this weekend. |
Oh no, this PR has been assailed by merge conflicts! @corruptmemory can ya take care of that? |
👋 heya, I think I'll close this within the next ~week if you don't have time for it @corruptmemory! You are very much encouraged to re-open it later, though 🙏 |
Sorry for the late response. I'll clean this up this week. |
e5998e0
to
2084b82
Compare
Codecov Report
@@ Coverage Diff @@
## master #741 +/- ##
=======================================
Coverage 72.89% 72.89%
=======================================
Files 32 32
Lines 2439 2439
=======================================
Hits 1778 1778
Misses 550 550
Partials 111 111
Continue to review full report at Codecov.
|
I see that there is now a collision between calling This change in line 331 in val := ctx.Context.Value("key") |
6bcf696
to
615e70e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense. LGTM
@lynncyrin This PR introduces breaking changes.
Please revert it ASAP. |
@Napas Are you using a dependency management system? I think not. I would suggest that pin to a release prior to |
I am doing that until it will be reverted, but minor version release should not have breaking changes. On top of that, it makes testing much harder as |
I'll revert this now, but just so it's 100% clear - there's no specific reason why reverting this should be blocked on me. Anyone can submit a reversion PR. |
Just in case anyone isn't aware - by no means did anyone involved in this PR merge a breaking change on purpose. |
I wrote a small utility to populate a
struct
reflectively from command-line-arguments, but to do this I needed to get at the values stored viavalue
.