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

Cannot use unix socket URI without authority for redis cache #2214

Open
RuairidhWilliamson opened this issue Jun 29, 2024 · 0 comments
Open

Comments

@RuairidhWilliamson
Copy link

The documentation https://github.com/mozilla/sccache/blob/main/docs/Redis.md states you can use a unix socket endpoint of unix:///tmp/redis.sock. However this gives the error endpoint is invalid, source: invalid format.

This is because the URI is parsed by http::Uri which has a known limitation that it does not parse URIs without authorities. hyperium/http#323

As a work around you can put any authority e.g. unix://banana/tmp/redis.sock. This will parse correctly and the authority is ignored by sccache anyway.

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

1 participant