Skip to content

Conversation

@mannaz
Copy link
Contributor

@mannaz mannaz commented Oct 19, 2016

The only reason to import "golang.org/x/net/context" package is to check that *gin.Context implements context.Context interface. But this implies fetching whole "golang.org/x/net" package tree using go get. So moving this check to context_test.go is reasonable.
This also resolves issues #469 and #684.

@coveralls
Copy link

coveralls commented Oct 19, 2016

Coverage Status

Coverage remained the same at 94.085% when pulling ceb250b on chiffa-org:redundant_context_import into eadf4da on gin-gonic:develop.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.085% when pulling ceb250b on chiffa-org:redundant_context_import into eadf4da on gin-gonic:develop.

@codecov-io
Copy link

Current coverage is 93.05% (diff: 100%)

Merging #724 into develop will not change coverage

@@            develop       #724   diff @@
==========================================
  Files            15         15          
  Lines          1268       1268          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1180       1180          
  Misses           76         76          
  Partials         12         12          

Powered by Codecov. Last update eadf4da...ceb250b

@tboerger
Copy link
Contributor

tboerger commented Dec 5, 2016

Maybe an exception for the newest go version? Because this got context integrated into the stdlib.

@javierprovecho
Copy link
Member

@tboerger for now we are supporting lower versions so the external import must stay. But in the near future or for gin.next we may drop support for older golang versions at once. Do you agree?

@javierprovecho javierprovecho merged commit 273e43a into gin-gonic:develop Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants