Skip to content

Comments

Allow using S3 virtual host style endpoints#2329

Merged
Xuanwo merged 2 commits intomozilla:mainfrom
brndnmtthws:s3-enable-virtual-host-style
Feb 27, 2025
Merged

Allow using S3 virtual host style endpoints#2329
Xuanwo merged 2 commits intomozilla:mainfrom
brndnmtthws:s3-enable-virtual-host-style

Conversation

@brndnmtthws
Copy link
Contributor

sccache currently breaks on S3 endpoints that use virtual host style URLs. This is because opendal strips the bucket name from URLs.

This PR provides a config option to force opendal to keep the bucket name in the URL, which unbreaks sccache for such buckets.

@brndnmtthws
Copy link
Contributor Author

Clippy should be happy now.

@ADustyOldMuffin
Copy link

ADustyOldMuffin commented Feb 26, 2025

Fixes #2344, thanks you beat me to it! Any timeline on getting this merged and out?

Copy link
Collaborator

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!

@Xuanwo Xuanwo merged commit 4d56b7d into mozilla:main Feb 27, 2025
59 checks passed
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (0cc0c62) to head (c6e1d1f).
Report is 148 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #2329       +/-   ##
==========================================
- Coverage   30.91%       0   -30.92%     
==========================================
  Files          53       0       -53     
  Lines       20112       0    -20112     
  Branches     9755       0     -9755     
==========================================
- Hits         6217       0     -6217     
+ Misses       7922       0     -7922     
+ Partials     5973       0     -5973     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andylolu2
Copy link

Would be amazing if we can make a new release for virtual host style support! 🙏🏻

@brndnmtthws brndnmtthws deleted the s3-enable-virtual-host-style branch March 1, 2025 11:44
tottoto pushed a commit to tottoto/sccache that referenced this pull request Feb 6, 2026
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

Successfully merging this pull request may close these issues.

5 participants