Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go list std returns no packages #31313
This was initially reported as dvyukov/go-fuzz#234. I've migrated it here as we investigate further, since this appears to be the correct home for it.
@saschagrunert reports that:
And provides this command and results:
This breaks go/packages.
@saschagrunert I have a couple of questions:
Thanks for your help tracking this down.
@josharian thank you for taking care of the issue and the report here!
I'm running openSUSE Tumbleweed, the (default) go package can be found here:
Sorry for the confusion, I tried multiple versions of go, like this development version of go1.12:
I did not modify anything by hand until I found out that a usual download from https://dl.google.com/go/go1.12.2.linux-amd64.tar.gz and a manual modification of GOROOT/GOPATH works like a charm.
It's by the distributions package. Do you think it would be possible to not ignore symlinks when running
I think this is an issue with the upstream distribution. Symbolic links cause a lot of issues with directory traversals, and they aren't supported on all platforms. If we followed them, it would very likely introduce bugs, and it would break projects that rely on the current behavior.
Note that in GOPATH mode, we do follow symbolic links for specific packages (e.g., I think
@saschagrunert do you have any interest in opening an openSUSE issue?
In the meantime, it appears that you have found a workaround (download the package directly). Given that, and given that is doesn't appear there are any changes forthcoming on the cmd/go side, I'm going to close this. Feel free to comment if you think that we should re-open and discuss more.