ruff/crates/ruff_cli/src
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
..
bin Add support for providing command-line arguments via argfile (#4087) 2023-04-25 17:58:21 -06:00
commands Use package roots rather than package members for cache initialization (#5233) 2023-06-20 21:21:45 -04:00
args.rs Add option (-o/--output-file) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
cache.rs Open cache files in parallel (#5120) 2023-06-20 17:43:09 +02:00
diagnostics.rs Open cache files in parallel (#5120) 2023-06-20 17:43:09 +02:00
lib.rs Add option (-o/--output-file) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Add option (-o/--output-file) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
resolve.rs Add a script that tests formatter stability on repositories (#5055) 2023-06-19 14:13:38 +00:00