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

Failure to go get because of moved gcimporter15 #58

Open
ednp opened this issue Apr 10, 2018 · 6 comments
Open

Failure to go get because of moved gcimporter15 #58

ednp opened this issue Apr 10, 2018 · 6 comments

Comments

@ednp
Copy link

ednp commented Apr 10, 2018

It appears goreporter relies on gcimporter15, which has been moved:
https://go-review.googlesource.com/c/tools/+/105977
https://godoc.org/golang.org/x/tools/go

Code location that imports it:
https://github.com/360EntSecGroup-Skylar/goreporter/blob/master/linters/simplecode/lint/lint.go#L23

Example error when running go get -u github.com/360EntSecGroup-Skylar/goreporter:

package golang.org/x/tools/go/gcimporter15: cannot find package "golang.org/x/tools/go/gcimporter15" in any of:
	/usr/local/go/src/golang.org/x/tools/go/gcimporter15 (from $GOROOT)
	/home/ubuntu/.go_workspace/src/golang.org/x/tools/go/gcimporter15 (from $GOPATH)
	/usr/local/go_workspace/src/golang.org/x/tools/go/gcimporter15
@eric00liu
Copy link

Same problem

@ghost
Copy link

ghost commented Apr 15, 2018

For anyone looking to move forward with this, you can patch from my fork: serussell/goreporter@3514eb452. It'll get you going (compiles & runs), but it's a quick hack and I haven't vetted the solution for correctness as I don't entirely understand why the original code was doing what it was doing in the way it was doing it (it seemed needlessly complex).

@wgliang
Copy link
Collaborator

wgliang commented Apr 16, 2018

@ednp @eric00liu Thank you very much for your feedback on this issue. I did not have version control on goreporter.I have solved it with godep, and later I will check if the dependency can be updated.

@serussell Great fix.

@XDfield
Copy link

XDfield commented Sep 20, 2018

same here in go1.11

I solved it with go1.10 and the corresponding version of golang.org/x/tools.

The problem is that gcimporter15 was removed, and I found that this package was still in go1.10. But golint relies on go/gcexportdata, which is added in go1.8, so I think go1.8~1.10 should be ok

@RandyLambert
Copy link

how to solve this problem?? I have same problem

@ibmer921150
Copy link

ibmer921150 commented May 5, 2021

Go the same problem. Go version go1.16.3 linux/amd64

https://pkg.go.dev/golang.org/x/tools/go/gcimporter15

Package gcimporter15 provides various functions for reading gc-generated object files that can be used to implement the Importer interface defined by the Go 1.5 standard library package.

Deprecated: this package will be deleted in October 2017. New code should use golang.org/x/tools/go/gcexportdata.

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

6 participants