-
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
'go generate' in ./go-fuzz requires installing go-bindata #279
Comments
It seems entirely plausible that I used https://github.com/kevinburke/go-bindata by mistake. I had been experimenting with various forks and ideas around that time. (One idea was to use DATA asm instructions for zero-cost readonly []byte embedded data.) I don’t feel strongly at all about which bindata generator we use. Most are geared towards net/http etc and are serious overkill for go-fuzz, which only needs a few constant strings. Actually, I wonder whether using txtar would be better. Then there’s no generate step at all—you just edit and use. Anyway, feel free to make an executive decision, document it / use it as appropriate, and forge ahead. |
Or even just a few plain ol' Go const strings. There aren't many of these files, they're short, etc. |
So, Go 1.16 is released. You can use now |
Good point. But since go-fuzz will soon be replaced by the standard library, I’m inclined not to change things—and require 1.16—at this point. |
There is a decent chance I am just confused here, but as far as I can tell, I suspect if your starting point is a clean environment, then running
go generate
in the go-fuzz/go-fuzz directory requires first installing some flavor ofgo-bindata
.If you don't, you get an (unhelpful?) error:
(I suspect the advice emitted on the second line there by
elazarl/go-bindata-assetfs
is incorrect based on briefly looking at that repo, as well as based on trying that suggested step and then seeing it not help ;-)elazarl/go-bindata-assetfs
is vendored by go-fuzz, but I suspect it alone is not complete.The corresponding
go generate
commands are:go-fuzz/go-fuzz/main.go
Lines 23 to 26 in 1810d38
I tried a couple different flavors of
go-bindata
.Based on comparing the output results, I suspect the most recent
go generate
run by @josharian in 1e7aea5 was using https://github.com/kevinburke/go-bindata, but not 100% sure. (The older https://github.com/jteeuwen/go-bindata seems pretty clearly not to be the flavor that was used).If you are starting in a clean environment with a copy of dvyukov/go-fuzz, then this seems to work for me:
Part of the context here is that at the time I was looking into what it would take to embed the support packages into the binaries (#252).
I haven't dived very deeply here, so sorry in advance if this is incorrect.
The text was updated successfully, but these errors were encountered: