mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.85k stars 552 forks source link

Add support to specify credentials for S3 explicitly #2210

Open Saruniks opened 4 months ago

Saruniks commented 4 months ago

Closes #2164

No breaking changes, because if environment variables (SCCACHE_AWS_ACCESS_KEY_ID, SCCACHE_AWS_SECRET_ACCESS_KEY) or file configuration for credentials are not specified, sccache will try to load credentials from environment (including AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 40.86%. Comparing base (0cc0c62) to head (0923a45). Report is 66 commits behind head on main.

Files Patch % Lines
src/config.rs 51.72% 2 Missing and 12 partials :warning:
src/cache/s3.rs 40.00% 3 Missing :warning:
src/cache/cache.rs 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2210 +/- ## ========================================== + Coverage 30.91% 40.86% +9.94% ========================================== Files 53 55 +2 Lines 20112 20707 +595 Branches 9755 9827 +72 ========================================== + Hits 6217 8461 +2244 - Misses 7922 8102 +180 + Partials 5973 4144 -1829 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.