scripts: use -trimpath for "go build" in check-third-party
Since "garble build" first performs a Go build with -trimpath, it helps to also use the flag with the "go build" step. This way we get more build cache hits, as building a Go package with and without the flag results in two separate builds. Before: $ go clean -cache && time ./scripts/check-third-party.sh real 0m41.844s user 2m17.791s sys 0m35.440s After: $ go clean -cache && time ./scripts/check-third-party.sh real 0m33.983s user 1m50.596s sys 0m28.499spull/624/head
parent
352d2fa73d
commit
98466a1f64
Loading…
Reference in New Issue