Skip to content
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

conversions/deep copy and protobuff generation tools break down with go 1.7 #10696

Closed
PI-Victor opened this issue Aug 29, 2016 · 10 comments
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P3

Comments

@PI-Victor
Copy link
Contributor

PI-Victor commented Aug 29, 2016

hack/update-generated-conversions.sh and hack/update-generated-deep-copies.sh break down in go 1.7

Steps To Reproduce
[ipalade@osx-dev origin]$ go version
go version go1.7 linux/amd64
[ipalade@osx-dev origin]$ hack/update-generated-conversions.sh 
++ Building go targets for linux/amd64: tools/genconversion
++ Placing binaries
/home/ipalade/projects/golang/src/github.com/openshift/origin//hack/build-go.sh took 16 seconds
type checker error: /usr/local/go/src/net/http/h2_bundle.go:45:2: could not import golang_org/x/net/http2/hpack (unable to *find* "golang_org/x/net/http2/hpack": cannot find package "golang_org/x/net/http2/hpack" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/http2/hpack (vendor tree)
    /usr/local/go/src/golang_org/x/net/http2/hpack (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/http2/hpack (from $GOPATH))
type checker error: /usr/local/go/src/net/http/h2_bundle.go:46:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/http.go:10:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/server.go:31:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/transfer.go:21:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/transport.go:30:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/h2_bundle.go:848:19: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1827:11: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1851:52: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1862:51: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:5020:11: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6727:20: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:3131:18: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:3187:46: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6826:22: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6918:30: undeclared name: hpack
type checking encountered some errors in "net/http", but ignoring.
^[[A2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/v1/conversion_generated.go"
2016/08/29 11:05:05 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/v1"
2016/08/29 11:05:05 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/v1/conversion_generated.go"
[ipalade@osx-dev origin]$ hack/update-generated-deep-copies.sh 
++ Building go targets for linux/amd64: tools/gendeepcopy
++ Placing binaries
/home/ipalade/projects/golang/src/github.com/openshift/origin//hack/build-go.sh took 5 seconds
type checker error: /usr/local/go/src/net/http/h2_bundle.go:45:2: could not import golang_org/x/net/http2/hpack (unable to *find* "golang_org/x/net/http2/hpack": cannot find package "golang_org/x/net/http2/hpack" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/http2/hpack (vendor tree)
    /usr/local/go/src/golang_org/x/net/http2/hpack (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/http2/hpack (from $GOPATH))
type checker error: /usr/local/go/src/net/http/h2_bundle.go:46:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/http.go:10:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/server.go:31:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/transfer.go:21:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/transport.go:30:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/h2_bundle.go:848:19: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1827:11: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1851:52: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1862:51: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:5020:11: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6727:20: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:3131:18: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:3187:46: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6826:22: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6918:30: undeclared name: hpack
type checking encountered some errors in "net/http", but ignoring.
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/v1"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/v1/deep_copy_generated.go"
2016/08/29 11:05:17 Processing package "api", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api"
2016/08/29 11:05:17 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/deep_copy_generated.go"
[ipalade@osx-dev origin]$ hack/update-generated-protobuf.sh 
++ Building go targets for linux/amd64: tools/genprotobuf vendor/k8s.io/kubernetes/cmd/libs/go2idl/go-to-protobuf/protoc-gen-gogo
++ Placing binaries
/home/ipalade/projects/golang/src/github.com/openshift/origin//hack/build-go.sh took 6 seconds
type checker error: /usr/local/go/src/net/http/h2_bundle.go:45:2: could not import golang_org/x/net/http2/hpack (unable to *find* "golang_org/x/net/http2/hpack": cannot find package "golang_org/x/net/http2/hpack" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/http2/hpack (vendor tree)
    /usr/local/go/src/golang_org/x/net/http2/hpack (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/http2/hpack (from $GOPATH))
type checker error: /usr/local/go/src/net/http/h2_bundle.go:46:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/http.go:10:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/server.go:31:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/transfer.go:21:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/transport.go:30:2: could not import golang_org/x/net/lex/httplex (unable to *find* "golang_org/x/net/lex/httplex": cannot find package "golang_org/x/net/lex/httplex" in any of:
    /home/ipalade/projects/golang/src/github.com/openshift/origin/vendor/golang_org/x/net/lex/httplex (vendor tree)
    /usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
    /home/ipalade/projects/golang/src/golang_org/x/net/lex/httplex (from $GOPATH))
type checker error: /usr/local/go/src/net/http/h2_bundle.go:848:19: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1827:11: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1851:52: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:1862:51: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:5020:11: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6727:20: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:3131:18: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:3187:46: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6826:22: undeclared name: hpack
type checker error: /usr/local/go/src/net/http/h2_bundle.go:6918:30: undeclared name: hpack
type checking encountered some errors in "net/http", but ignoring.
2016/08/29 12:30:54 Processing package "github.com.openshift.origin.pkg.authorization.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1"
2016/08/29 12:30:54 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1/generated.proto"
2016/08/29 12:30:54 Processing package "github.com.openshift.origin.pkg.build.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/build/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.deploy.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/deploy/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.image.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/image/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.oauth.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/oauth/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.project.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/project/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.quota.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/quota/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.route.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/route/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.sdn.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/sdn/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.security.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/security/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.template.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/template/api/v1/generated.proto"
2016/08/29 12:30:55 Processing package "github.com.openshift.origin.pkg.user.api.v1", disk location "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/v1"
2016/08/29 12:30:55 Assembling file "/home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/user/api/v1/generated.proto"
2016/08/29 12:30:56 github.com/openshift/origin/pkg/authorization/api/v1/generated.proto: warning: Import k8s.io/kubernetes/pkg/util/intstr/generated.proto but not used.
2016/08/29 12:30:56 goimports -w /home/ipalade/projects/golang/src/github.com/openshift/origin/pkg/authorization/api/v1/generated.pb.go
2016/08/29 12:30:56 Unable to rewrite imports for github.com.openshift.origin.pkg.authorization.api.v1: fork/exec /home/ipalade/projects/golang/bin/goimports: exec format error
[ERROR] PID 22786: hack/update-generated-protobuf.sh:33: `PATH="$( dirname "${genprotobuf}" ):${PATH}" ${genprotobuf} --output-base="${GOPATH}/src" "$@"` exited with status 1.
[INFO]      Stack Trace: 
[INFO]        1: hack/update-generated-protobuf.sh:33: `PATH="$( dirname "${genprotobuf}" ):${PATH}" ${genprotobuf} --output-base="${GOPATH}/src" "$@"`
[INFO]   Exiting with code 1.
@PI-Victor PI-Victor added kind/bug Categorizes issue or PR as related to a bug. priority/P2 area/tools labels Aug 29, 2016
@PI-Victor PI-Victor changed the title conversion/deep copy tools break down with go 1.7 conversions/deep copy and protobuff generation tools break down with go 1.7 Aug 29, 2016
@PI-Victor
Copy link
Contributor Author

i remember @mfojtik was saying this belongs upstream, not sure where in kube that belongs in, i'd open the issue against that.
cc @smarterclayton @bparees

@mfojtik
Copy link
Contributor

mfojtik commented Aug 29, 2016

@PI-Victor this is because some libs moved in go-1.7 and I don't think we can fix this for 1.6 and below. Also this is not an error, but this is:

fork/exec /home/ipalade/projects/golang/bin/goimports: exec format error

and it is because you use OSX binary in Linux system right? ;-)

@PI-Victor
Copy link
Contributor Author

@mfojtik i fixed that, but yes that error was my goimports binary :)
so what do we do now when we use 1.7 more?

@mfojtik
Copy link
Contributor

mfojtik commented Aug 29, 2016

@PI-Victor @smarterclayton is there a fix for this error in upstream?

@smarterclayton
Copy link
Contributor

Please file an upstream issue if there isn't one.

@smarterclayton
Copy link
Contributor

Jessie Frazzelle had a 1.7 PR, she may have fixed it.

@PI-Victor
Copy link
Contributor Author

this seems to be fixed upstream so i guess we're just waiting for rebase

@mfojtik
Copy link
Contributor

mfojtik commented Sep 16, 2016

@PI-Victor now anymore, rebase landed 💥

@mfojtik
Copy link
Contributor

mfojtik commented Sep 16, 2016

(to note, the client set generator does not throw these errors anymore, so I assume protobuf && friends will be fixed now as well)

@PI-Victor
Copy link
Contributor Author

i can confirm this is no longer an issue with 1.7, tested all of the above. proto/conv/deep_copy.
closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P3
Projects
None yet
Development

No branches or pull requests

3 participants