-
Notifications
You must be signed in to change notification settings - Fork 30
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
Remove gorilla/context #81
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
22fdcca
to
1abdb25
Compare
51f1577
to
cb8fedc
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.
Otherwise LGTM. As you say, it doesn't look like you've made any changes that would break us.
3bde698
to
4ca0815
Compare
security +1
|
security +1 |
https://golang.org/ref/mod#major-version-suffixes Major version suffixes are not allowed at major versions v0 or v1. There is no need to change the module path between v0 and v1 because v0 versions are unstable and have no compatibility guarantee. Additionally, for most modules, v1 is backwards compatible with the last v0 version; a v1 version acts as a commitment to compatibility, rather than an indication of incompatible changes compared with v0.
b86cc45
QA +1 Pushed to test branch and tested against the analytics_gateway. No issues handling contextual information. |
@trentonsmith-wf @blakemorris-wk I apologize for all the false starts here. I misunderstood the limitations of major version suffixes and (earlier) stupidly assumed this lib was at a stable release. Should be good to go now. |
QA +1 refresh @Workiva/release-management |
Goal
The goal of this PR is to remove dependence on
gorilla/context
, which is deprecated. Usages are replaced with the stdlibcontext
package, specifically with calls tonet/http
'sRequest.Context()
andcontext.WithValue()
.In addition to this update, I've updated to go 1.15 and go modules and version bumped to v2. The commit history should be straight forward. In particular, 4ca0815 shows the changes I made to v1.
Test
The interface remained the same. Consumers of go-rest should not use
gorilla/context
. Should be tested against services using this library (analytics_gateway).