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

Unsure about the necessity of SCCACHE_S3_KEY_PREFIX when using sccache across multiple projects #2312

Open
jselig-rigetti opened this issue Jan 7, 2025 · 1 comment

Comments

@jselig-rigetti
Copy link

jselig-rigetti commented Jan 7, 2025

Hello, from https://github.com/mozilla/sccache/blob/main/docs/S3.md#s3

You can also define a prefix that will be prepended to the keys of all cache objects created and read within the S3 bucket, effectively creating a scope. To do that use the SCCACHE_S3_KEY_PREFIX environment variable. This can be useful when sharing a bucket with another application.

Does the word application here mean some non-sccache related use of the bucket, or does it mean separate rust projects? I've noticed some ephemeral build errors in dependencies when multiple projects are using the same bucket so I figured (without the time or skill to do a more thorough investigation) that it would be a reasonable hedge against a potential class of errors if each project used a different SCCACHE_S3_KEY_PREFIX.

Opening this as an issue so that hopefully any clarification makes it back into the documentation.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jan 8, 2025

Hi, sccache ensures that the same bucket can be used by multiple instances simultaneously. Different applications refer to other programs that might use the bucket at the same time—for example, the bucket could also be used to store CI logs.

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

2 participants