mock
mock copied to clipboard
Add archive mode
This CL adds archive mode, which takes advantage of go/gcexportdata and go/types packages to extract typing info from a package archive file.
Given the way go archive is designed, we don't need to worry about transitive dependencies, as it already includes all transitive typing info. And, we don't need to build or run anything, so even if cgo is involved, it will still work.
Fixes #424
Can you rebase this PR with main to resolve the conflicts and restart the tests?
Can you rebase this PR with main to resolve the conflicts and restart the tests?
Done. PTAL.