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

Caching of extracted toolchains #378

Open
brianv0 opened this issue Aug 25, 2024 · 2 comments
Open

Caching of extracted toolchains #378

brianv0 opened this issue Aug 25, 2024 · 2 comments

Comments

@brianv0
Copy link

brianv0 commented Aug 25, 2024

I'd like to try to cache the extracted toolchain/repo, especially for CI purposes, but realizing this may be a limitation with bazel I can't overcome. I know this is probably a generic issue but most archives aren't as large as the llvm distribution so it's less of an issue.

In testing, it takes a bit over a minute to extract some of the llvm toolchains on my i9 macbook pro (curiously, vs 40 seconds with tar xf).

I clear out my bazel folders under /tmp and retry I always re-extract the archive. I can confirm repository cache works for the purposes of caching the binaries tarball, and that the extracted files don't end up in my disk cache.

For the purposes of CI I suppose I could periodically materialize bazel-out, but I was hoping to rely purely on the bazel caches.

@mortenmj
Copy link

Have you had a look at https://bazel.build/external/vendor ?

@mering
Copy link
Contributor

mering commented Oct 1, 2024

bazelbuild/bazel#12227 should solve this.

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

No branches or pull requests

3 participants