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

sharing remote caching bootsnap cache dir across machines #443

Closed
TSMMark opened this issue May 19, 2023 · 2 comments
Closed

sharing remote caching bootsnap cache dir across machines #443

TSMMark opened this issue May 19, 2023 · 2 comments

Comments

@TSMMark
Copy link
Contributor

TSMMark commented May 19, 2023

E.g. with something like turborepo, for improved cache-hit across dev machines and CI.

Would remote caching bootsnap cache be feasible, or is the cache machine dependent?

@byroot
Copy link
Contributor

byroot commented May 19, 2023

The bootsnap cache is shareable across machines, but with some caveat:

  • The source code must have the same absolute path on all machines (this is a limitation of the API provided by Ruby: https://bugs.ruby-lang.org/issues/17593, may be fixed in the future).
  • The cache key include the source code mtime, so depending on how you deploy your code and share your cache, it may or may not work.

@casperisfine
Copy link
Contributor

Closing in favor of #336

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