Commit Graph

2 Commits (9c25f4c2b2c63c4c56a4c9f44bcc4c3e73d4b2bc)

Author SHA1 Message Date
Daniel Martí 65461aabce reuse a single 'go list -json -export -deps' call
Instead of doing a 'go list' call every time we need to fetch a
dependency's export file, we now do a single 'go list' call before the
build begins. With the '-deps' flag, it gives us all the dependency
packages recursively.

We store that data in the gob format in a temporary file, and share it
with the future garble sub-processes via an env var.

This required lazy parsing of flags for the 'build' and 'test' commands,
since now we need to run 'go list' with the same package pattern
arguments.

Fixes #63.
5 years ago
lu4p 65ceb9b7ca
allow easy inpection of garbled code
Fixes #17.
5 years ago