feat: support for Tencent Cloud Object Storage#2563
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2563 +/- ##
=======================================
Coverage 71.18% 71.18%
=======================================
Files 64 65 +1
Lines 35588 35669 +81
=======================================
+ Hits 25333 25392 +59
- Misses 10255 10277 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| } | ||
|
|
||
| // ======= COS ======= | ||
| let cos = if let Ok(bucket) = env::var("SCCACHE_COS_BUCKET") { |
There was a problem hiding this comment.
Missing validation: SCCACHE_COS_ENDPOINT should be required when SCCACHE_COS_BUCKET is set. Add validation like: if env::var('SCCACHE_COS_BUCKET').is_ok() && env::var('SCCACHE_COS_ENDPOINT').is_err() { bail!('SCCACHE_COS_ENDPOINT must be set'); }
There was a problem hiding this comment.
I followed the codes of other object stores (like OSS). They don't validate the Option but declare the endpoint as a necessary (must) configuration.
Support for Tencent Cloud Object Storage.