bazel_rules_pex icon indicating copy to clipboard operation
bazel_rules_pex copied to clipboard

Allow passing pex cache directory to speed up build

Open mouadino opened this issue 7 years ago • 1 comments

When runing bazel build (or test) in standbox the pex cche (i.e. .pex/build) ends up being created inside the sandbox directory which is deleted at the end of bazel build (or test) which a second run will requires again to download the same dependencies again and again.

mouadino avatar Dec 19 '17 14:12 mouadino

I know that saving cache for later usage may not be very hermetic since this later is not tracked by Bazel itself if you decide to set cache_dir to say $(@D) but still the speed improvement is dramatic (although the performance is better, it's still slow for our use case).

mouadino avatar Dec 19 '17 14:12 mouadino