matus-chochlik / ctcache

Cache for clang-tidy static analysis results
Boost Software License 1.0
84 stars 30 forks source link

Make cache_dir a property, fix `KeyError: "getpwuid(): uid not found:"` #5

Closed Felixoid closed 2 years ago

Felixoid commented 2 years ago

Hello, thank you for the tool!

I'm trying adopting it in https://github.com/ClickHouse/ClickHouse/pull/42913, but we don't have a user in docker images, and the CTCACHE_DIR environment variable doesn't work

(Pdb) is_cached(opts, digest)
*** KeyError: 'getpwuid(): uid not found: 1000'

Here I try fixing it. As well as reduce the load in cache_dir by making it a property