-
Notifications
You must be signed in to change notification settings - Fork 849
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
Eliminate stdlib forks living at core/ #90
Comments
👍 |
@paulmey can you dump here what you know about those (i.e. why we have them) it'd be nice to know where exactly we modified if we can. |
There was an issue about that, I left my comment there: #5 Copying my answer here: Patch: You can find more information about this issue here: @ahmetalpbalkan @paulmey hope it helps. |
@hopetobelievein sure it will, thanks! Was that the only patch for vendoring Any ideas about |
Yes, that is the only thing that changed, plus references to changed packages. |
@hopetobelievein thanks for clarifications. it took us some time in the past to dig deep and understand what's the diff'ed part. |
Hi! Is it possible to add the patch as a separate commit? That way the differences are more visible, and also it adds more context. It would be: One commit with the changes of the original repo (to revert everything), and one commit adding the patch and some context. |
Well, that history is sorta gone. This project was passed around a bit before ending up here. From my own archeology, the tls package looks like go1.2: (full diff) paulmey@paulmey-z800:~/src/tmp-golang$ git co go1.2
HEAD is now at 402d359... go1.2
paulmey@paulmey-z800:~/src/tmp-golang$ diff -rw ~/src/go/src/github.com/Azure/azure-sdk-for-go/core/tls/ src/pkg/crypto/tls/|diffstat
common.go | 1 -
conn.go | 31 +------------------------------
handshake_messages.go | 11 -----------
3 files changed, 1 insertion(+), 42 deletions(-) The http package looks like go1.3: paulmey@paulmey-z800:~/src/tmp-golang$ git co go1.3
Previous HEAD position was 402d359... go1.2
HEAD is now at 1cdd48c... go1.3
paulmey@paulmey-z800:~/src/tmp-golang$ diff -rw ~/src/go/src/github.com/Azure/azure-sdk-for-go/core/http/ src/pkg/net/http/|diffstat
response.go | 2 +-
transport.go | 2 +-
transport_test.go | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-) Note that the only changes to the http package are to reference the modified tls package. |
Heads up go1.7 probably will ship with TLS renegotation support golang/go#5742 (comment) and we confirmed that fix works with Azure Service Management REST APIs. So we'll finally have a way to fix forks of |
Are we comfortable saying azure-sdk-for-go is only compatible with the very latest Go compiler/stdlib? (Not that I'm against removing unneeded code...) |
@colemickens well first of all we expect all users to use vendoring, they always can go back. second is, this is |
👍 very much in favor of dropping /core/ |
🔜 go1.7 will come out. |
Go 1.7 introduces TLS renegotiation: golang/go@af125a5 Removing our net/http and crypto/tls forks and just using Renegotation field in the crypto/tls.Config field of the net/http.Client of the ./management/** packages. (Fixes Azure#90) Should be merged once go1.7 stable is out and preferably like 1 month later. If the customers of the ./management/ package are not vendoring the SDK and using go versions prior to 1.7, they will get a compilation error. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
add message session example
core/
currently hasnet/http
andcrypto/tls
vendored (with some changes we don't entirely know). We must watch out if we can make feature requests to golang about these and eventually get rid of those (nobody will vendor our entire repo like this) 😄The text was updated successfully, but these errors were encountered: