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 about version skew #1

Open
misterikkit opened this issue May 21, 2018 · 1 comment
Open

Error about version skew #1

misterikkit opened this issue May 21, 2018 · 1 comment

Comments

@misterikkit
Copy link

I downloaded this tool to try it out, but got a runtime error instead. When I try it on some other directories, I get the same error about importing other packages such as 'errors' 'fmt' and 'reflect'. (I do not get any build errors.)

go get -u github.com/jba/errside
errside github.com/jba/errside
github.com/jba/errside/: github.com/jba/errside/errside.go:4:2: could not import flag (/usr/lib/google-golang/pkg/linux_amd64/flag.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package)

go version go1.10.2 linux/amd64

@jba
Copy link
Owner

jba commented May 26, 2018

Thanks for trying this.

I wrote errside as a proof of concept for my GopherCon 2017 lightning talk. It wasn't intended to be production code, and (as you've found) it doesn't work in many cases.

It's hard to maintain in its current form because it uses forks of a few standard library packages.

If you run it under go 1.8 on the testdata directory, you'll see how it's intended to work. Here's an easy way to do that with docker:

docker run -v $GOPATH/src:/go/src golang:1.8 go run src/github.com/jba/errside/errside.go src/github.com/jba/errside/testdata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants