Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing pex cache directory to speed up build #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mouadino
Copy link
Contributor

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.

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
Copy link
Contributor Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant