-
Notifications
You must be signed in to change notification settings - Fork 279
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
can't find imported package github.com/lib/pq/hstore #127
Comments
Turns out |
Can you provide a reproducer? Is it because of vendoring? |
I might've hit this same issue over at prometheus/prometheus#945. Reproduction (untested, but the ideas should be obvious):
One curious thing is that I get different import errors between runs. In particular it seems to pick one of three packages to fail with... |
@msiebuhr These commands fail or me as:
When I changed the command to:
It fails as:
It seem that |
@dvyukov It reads like you checked out my branch under (Alas, if only path-relative imports hadn't run into all sorts of practical realities :-/ ) As you already have it checked out, I guess |
I'm hitting this as well; specifically with an app using a vendor directory. In looking at the src and comparing with my failures, it seems like it's failing in buildInstrumentedBinary. And that the deps array doesn't contain any of the applications dependencies. In looking at a couple of the working directories I can see my app's source and the stdlib source explicitly added to the deps array. But no direct or transitive dependencies. |
@msiebuhr Yeah, I tried to short-circuit your instructions. I was able to reproduce the failure. Works for me with 6174d61. Please retest. I would strongly not suggest to do:
but instead do:
It will be very difficult for the fuzzer to progress if it will constantly throw all progress away. I have not looked at your package, but for parsing it's generally useful to do something along the lines of: parse, serialize, parse again, compare results of first and second parse. |
@dvyukov It now works on Prometheus! And thanks for the tip on throwing too much stuff away. |
@dvyukov Works great. Thanks! Found a crasher right away: Return an error instead of nil |
Hi all, I am trying to run
go-fuzz-build
on a local package, I have followed the instructions on the README and when I try to use thego-fuzz-build
command I get the following error:can't find imported package github.com/lib/pq/hstore
.I then installed this package via
go get github.com/lib/pq/hstore
which seemed to work since the source files appeared in my go path.However when I tried to use the
go-fuzz-build
command again I got the same error.Any ideas what I should try? Or what may be going wrong?
I am on
go version go1.6 darwin/amd64
and I have setGO15VENDOREXPERIMENT=1
Any help would be greatly appreciated, thank you!
The text was updated successfully, but these errors were encountered: