Adds support for recreating packages.Package and packages.TypeInfo data from gcexportdata, which is data about the public API of a compiled package (what types does it export, what packages are indirectly exposed by it etc).
Both the gcexportdata for the sum of the transitive closures of package dependenices we are generating mocks from , as well as the source files of the packages of which we are generating mocks from are required as new inputs.
This is as an alternative to packages.Load, which is not available (or cheaply available) in certain environments (this in particular was spurred by a Bazel environment, but the idea likely extends to others like Buck{,2}).
Adds support for recreating
packages.Package
andpackages.TypeInfo
data from gcexportdata, which is data about the public API of a compiled package (what types does it export, what packages are indirectly exposed by it etc).Both the gcexportdata for the sum of the transitive closures of package dependenices we are generating mocks from , as well as the source files of the packages of which we are generating mocks from are required as new inputs.
This is as an alternative to
packages.Load
, which is not available (or cheaply available) in certain environments (this in particular was spurred by a Bazel environment, but the idea likely extends to others like Buck{,2}).