ruff/crates/ruff_cli
Charlie Marsh 621e9ace88
Use package roots rather than package members for cache initialization (#5233)
## Summary

This is a proper fix for the issue patched-over in
https://github.com/astral-sh/ruff/pull/5229, thanks to an extremely
helpful repro from @tlambert03 in that thread. It looks like we were
using the keys of `package_roots` rather than the values to initialize
the cache -- but it's a map from package to package root.

## Test Plan

Reverted #5229, then ran through the plan that @tlambert03 included in
https://github.com/astral-sh/ruff/pull/5229#issuecomment-1599723226.
Verified the panic before but not after this change.
2023-06-20 21:21:45 -04:00
..
resources/test/fixtures/cache_mutable Open cache files in parallel (#5120) 2023-06-20 17:43:09 +02:00
src Use package roots rather than package members for cache initialization (#5233) 2023-06-20 21:21:45 -04:00
tests Add rule documentation URL to JSON output (#5187) 2023-06-19 21:09:15 +00:00
Cargo.toml Bump version to 0.0.273 (#5218) 2023-06-20 14:37:28 -04:00