Closed dlsniper closed 7 years ago
This is because godep was compiled with the go/ast package from go1.7, which doesn't support aliases.
Some ways to "solve" this:
we come across the same issue.
I guess we can close this for now as Alias have been postponed for 1.9
Yay
I'm still seeing this, @freeformz. I was on 1.7.4 and updated to the beta thinking this might be related.
godep save ./...
godep: WARNING: Godep workspaces (./Godeps/_workspace) are deprecated and support for them will be removed when go1.8 is released.
godep: Godeps/_workspace/src/golang.org/x/net/context/go18.go:17:14: expected type, found '=' (and 1 more errors)
$ go version
go version go1.8beta1 darwin/amd64
$ godep version
godep: WARNING: Godep workspaces (./Godeps/_workspace) are deprecated and support for them will be removed when go1.8 is released.
godep v75 (darwin/amd64/go1.8beta1)
Came across this issue with go1.9
(with now official support for type alias)
FYI: Fixed by recompiling godep
with go1.9
.
Steps to reproduce behavior
Pull in the latest x/net/context package and save it in a project it works with.
godep version
outputgo version
output