FindPackage is called during Load to create the build.Package for a given import path from a given directory. If FindPackage is nil, (*build.Context).Import is used. A client may use this hook to adapt to a proprietary build system that does not follow the "go build" layout conventions, for example.

It must be safe to call concurrently from multiple goroutines.

FindPackage is referenced in 1 repository