disintegration / bebop

Bebop is a simple discussion board / forum web application
MIT License
552 stars 73 forks source link

go get fails #3

Closed dryaf closed 7 years ago

dryaf commented 7 years ago

I just tried getting the project with golang 1.8.1 and got ...

$ go get -u github.com/disintegration/bebop/cmd/bebop

# github.com/disintegration/bebop/vendor/google.golang.org/grpc/credentials
go/src/github.com/disintegration/bebop/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go:52: cfg.Clone undefined (type *tls.Config has no field or method Clone, but does have tls.clone)
# github.com/disintegration/bebop/vendor/golang.org/x/net/http2
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:16: c.Clone undefined (type *tls.Config has no field or method Clone, but does have tls.clone)
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:17: c.GetClientCertificate undefined (type *tls.Config has no field or method GetClientCertificate)
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:21: undefined: http.Pusher
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:24: undefined: http.PushOptions
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:35: h1.IdleTimeout undefined (type *http.Server has no field or method IdleTimeout)
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:36: h1.IdleTimeout undefined (type *http.Server has no field or method IdleTimeout)
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:45: undefined: http.ErrAbortHandler
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:49: req.GetBody undefined (type *http.Request has no field or method GetBody)
go/src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:53: undefined: http.NoBody
# github.com/disintegration/bebop/vendor/github.com/aws/aws-sdk-go/aws
go/src/github.com/disintegration/bebop/vendor/github.com/aws/aws-sdk-go/aws/url.go:11: url.Hostname undefined (type *url.URL has no field or method Hostname)
# github.com/disintegration/bebop/vendor/github.com/lib/pq
go/src/github.com/disintegration/bebop/vendor/github.com/lib/pq/conn_go18.go:14: undefined: driver.NamedValue
go/src/github.com/disintegration/bebop/vendor/github.com/lib/pq/conn_go18.go:29: undefined: driver.NamedValue
go/src/github.com/disintegration/bebop/vendor/github.com/lib/pq/conn_go18.go:43: undefined: driver.TxOptions
# github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware
go/src/github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware/compress18.go:10: undefined: http.PushOptions
go/src/github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware/compress18.go:11: undefined: http.Pusher
go/src/github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware/wrap_writer18.go:19: undefined: http.Pusher
go/src/github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware/wrap_writer18.go:37: undefined: http.PushOptions
go/src/github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware/wrap_writer18.go:38: undefined: http.Pusher
go/src/github.com/disintegration/bebop/vendor/github.com/pressly/chi/middleware/wrap_writer18.go:41: undefined: http.Pusher

any idea why this could happen?

disintegration commented 7 years ago

Hello,

Do you have several versions of go installed on your system? I'm not sure, but the error looks like you're using go1.8 and the stdlib is from earlier versions of go. I've searched for similar issues, and the general recommendation is to check the go installation / configuration. For example: https://github.com/gorilla/websocket/issues/225

dryaf commented 7 years ago

Hi,

thank you for the hint :) I had an old go version installed via the pkg from the website and installed the new one with homebrew.

mystery solved!

hmarcelodn commented 7 years ago

I am experiencing same issue using version 1.7.6

disintegration commented 7 years ago

@hmarcelodn, Are you sure you are getting the same errors using 1.7.6? For example:

src/github.com/disintegration/bebop/vendor/golang.org/x/net/http2/go18.go:21: undefined: http.Pusher

The file go18.go has a build tag for +build go1.8 so it isn't used for go 1.7.6.

Please check your go installation and go version output. Most probably you have a conflict between two go versions installed if you get the same errors messages.