-
Notifications
You must be signed in to change notification settings - Fork 280
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-fuzz-build: add module support #219
Comments
No. This is the same as regular go build. I’m afraid you’ll have to write a script to do that. Or you might want to look at fuzzbuzz.io. (No affiliation.)
go-fuzz does not yet support modules; my apologies.
I’m not sure offhand why that would work, but if you’re using modules, that does explain why go-fuzz-build isn’t working for you in normal circumstances. |
Pardon for the late reply; would the project be open to contributions right now for supporting projects that use Go modules? |
How complex is that approximately? |
From a brief skim of how As an alternative, it is possible to use the type-checking and package import resolver straight from the current Go standard library which also resolves import paths to packages that use Go modules. The complexity would be moderate, as the APIs are mostly the same. For resolving build src paths: https://golang.org/pkg/go/build/ For functions of interest: Resolving build paths: https://golang.org/pkg/go/build/#Context.Import Though, if there are reasons as to why |
Package I suspect (but have not tried) that all that is required to add module support is to (a) copy I intend to work on module support at some point, but it isn't high on my list at the moment. I suppose it should be higher. I'd be happy to review a PR. |
From you said it seems that the modules support will be moderate amount of code and no significant duplication with std lib. Modules support is welcome. @iwasaki-kenta go ahead. |
I’m going to close this as a duplicate of #195. |
Is there any support to allow for
go-fuzz-build
to checkout and build a custom branch of a repository?Additionally, is there any support to specify a directory to
go-fuzz-build
comprising of a Go module?The reason I'm trying to checkout and build a custom branch is that
go-fuzz-build
seems to only work when executed withinGOROOT
, though my project makes use of Go modules extensively right now.The text was updated successfully, but these errors were encountered: