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.6k stars 533 forks source link

Live documentation doesn't reflect release reality #2146

Open skull-squadron opened 3 months ago

skull-squadron commented 3 months ago

The documentation says:

SCCACHE_MEMCACHED is a deprecated alias for SCCACHE_MEMCACHED_ENDPOINT for unifying the variable name with other remote storages.

Unfortunately, SCCACHE_MEMCACHED_ENDPOINT has no effect at all in 0.7.7, with or without a spawned server because it's recent churn.

Perhaps development should be straight line on another branch while main is stable and reliable according to what has been released.

Expected behavior

$ SCCACHE_MEMCACHED_ENDPOINT=tcp://.... sccache -s | grep loc
Cache location                  memcached, name: memcached, prefix: /

Actual behavior

$ SCCACHE_MEMCACHED_ENDPOINT=tcp://.... sccache -s | grep loc
Cache location                  Cache location                  Local disk: "...."
$ SCCACHE_MEMCACHED=tcp://.... sccache -s | grep loc
Cache location                  memcached, name: memcached, prefix: /

Environment

sylvestre commented 3 months ago

would you mind providing a PR to fix it? thanks