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

error with installation #627

Closed
emmtte opened this issue Apr 24, 2016 · 7 comments
Closed

error with installation #627

emmtte opened this issue Apr 24, 2016 · 7 comments
Milestone

Comments

@emmtte
Copy link

emmtte commented Apr 24, 2016

Hi, I have this error when I try to update drive

go get -u github.com/odeke-em/drive/cmd/drive
# golang.org/x/net/context/ctxhttp
../.bin/go/src/golang.org/x/net/context/ctxhttp/ctxhttp.go:35: req.Cancel undefined (type *http.Request has no field or method Cancel)
@professorjamesmoriarty
Copy link

Can you share the version of your go installation?

@emmtte
Copy link
Author

emmtte commented Apr 24, 2016

go version go1.3.3 linux/arm

@professorjamesmoriarty
Copy link

I think this is related to changes in go and respective "libs". @odeke-em no doubt more informative then me. But without some code changes, drive might require a newer go version then 1.3 series.

Out of curiosity what os/distro are you trying to build on?

@emmtte
Copy link
Author

emmtte commented Apr 24, 2016

Ok thanks, it's a Raspian distrib for a Raspberry Pi.
I'm waiting...

@odeke-em
Copy link
Owner

Hello again @ManuCart thanks for reporting this. @shaggytwodope thanks for answering this.
Yes in deed, I think you need to have at least Go1.4 since request.Cancel was added in golang/go@8b4278f on 28th June 2015 but that was for Go1.5. Please try with Go1.4 for starters.

@emmtte
Copy link
Author

emmtte commented Apr 26, 2016

OK thanks it's working with 1.6.2

@ctro
Copy link

ctro commented Apr 27, 2016

I ran into this same problem, the latest go fixes it for me too.
Maybe the README should be adjusted, it mentions go 1.3.x as a dependency. I was running 1.3 when the error above happened so I didn't think to update go.

odeke-em added a commit that referenced this issue Apr 29, 2016
Because of dependency requirements calling for at least go1.5, we need to
bump the requirement in the README.

```shell
$ go get -u github.com/odeke-em/drive/cmd/drive
golang.org/x/net/context/ctxhttp
../gopath/src/golang.org/x/net/context/ctxhttp/ctxhttp.go:35: req.Cancel
undefined (type *http.Request has no field or method Cancel)
```

Fixes #630.
Updates #627.
@odeke-em odeke-em added this to the v0.3.6 milestone Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants