]> Cypherpunks repositories - gostls13.git/commitdiff
vendor: move golang.org/x/net/http2/hpack back to vendor
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 24 Mar 2016 05:49:47 +0000 (16:49 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 24 Mar 2016 20:26:51 +0000 (20:26 +0000)
Updates #14047

Change-Id: I7e314e2c7e3e8da18ab023729740fbc9ea3f661e
Reviewed-on: https://go-review.googlesource.com/21063
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/build/build_test.go
src/go/build/deps_test.go
src/net/http/h2_bundle.go
src/vendor/README [deleted file]
src/vendor/golang.org/x/net/http2/hpack/encode.go [moved from src/internal/golang.org/x/net/http2/hpack/encode.go with 100% similarity]
src/vendor/golang.org/x/net/http2/hpack/encode_test.go [moved from src/internal/golang.org/x/net/http2/hpack/encode_test.go with 100% similarity]
src/vendor/golang.org/x/net/http2/hpack/hpack.go [moved from src/internal/golang.org/x/net/http2/hpack/hpack.go with 100% similarity]
src/vendor/golang.org/x/net/http2/hpack/hpack_test.go [moved from src/internal/golang.org/x/net/http2/hpack/hpack_test.go with 100% similarity]
src/vendor/golang.org/x/net/http2/hpack/huffman.go [moved from src/internal/golang.org/x/net/http2/hpack/huffman.go with 100% similarity]
src/vendor/golang.org/x/net/http2/hpack/tables.go [moved from src/internal/golang.org/x/net/http2/hpack/tables.go with 100% similarity]

index 4d6fc2423e8ca04b768b448a840388303f356c47..537d8d1e2d0b9e7cdf82811b54dfa08ece56eb36 100644 (file)
@@ -300,7 +300,6 @@ func TestShellSafety(t *testing.T) {
 }
 
 func TestImportVendor(t *testing.T) {
-       t.Skip("skipping; hpack has moved to internal for now; golang.org/issue/14047")
        testenv.MustHaveGoBuild(t) // really must just have source
        ctxt := Default
        ctxt.GOPATH = ""
index 1bd1f4ec20f5d9e130e14b1060bf894fcb21be55..32fa09ffd9c3d71d91b014a52a07e161affe6019 100644 (file)
@@ -358,7 +358,7 @@ var pkgDeps = map[string][]string{
                "L4", "NET", "OS",
                "compress/gzip", "crypto/tls", "mime/multipart", "runtime/debug",
                "net/http/internal",
-               "internal/golang.org/x/net/http2/hpack",
+               "golang.org/x/net/http2/hpack",
        },
        "net/http/internal": {"L4"},
 
index 1e9088c9c369c3c23c67fc66f92137067fa5545c..db137b24b907c8b9ff61283c7edb8222e95968f1 100644 (file)
@@ -1,5 +1,5 @@
 // Code generated by golang.org/x/tools/cmd/bundle.
-//go:generate bundle -o h2_bundle.go -prefix http2 -import golang.org/x/net/http2/hpack=internal/golang.org/x/net/http2/hpack golang.org/x/net/http2
+//go:generate bundle -o h2_bundle.go -prefix http2 golang.org/x/net/http2
 
 // Package http2 implements the HTTP/2 protocol.
 //
@@ -24,7 +24,6 @@ import (
        "encoding/binary"
        "errors"
        "fmt"
-       "internal/golang.org/x/net/http2/hpack"
        "io"
        "io/ioutil"
        "log"
@@ -39,6 +38,8 @@ import (
        "strings"
        "sync"
        "time"
+
+       "golang.org/x/net/http2/hpack"
 )
 
 // ClientConnPool manages a pool of HTTP/2 client connections.
diff --git a/src/vendor/README b/src/vendor/README
deleted file mode 100644 (file)
index e540318..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-This file needs to exist because the vendor directory needs
-to exist for some go/build tests to pass, and git can't track
-empty directories.
-
-In Go 1.7 we'll use this directory again. (In Go 1.6 we tried but
-reverted).
-
-See http://golang.org/issue/14047 for details.