mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
update existing calls to roc_cache_dir()
using `roc_cache_packages_dir()` instead, which will return "~/.cache/roc/packages", which was the existing functionality, but `roc_cache_dir()` will now return "~/.cache/roc"
This commit is contained in:
parent
7c86cf026d
commit
3f318e2235
8 changed files with 14 additions and 14 deletions
|
@ -114,7 +114,7 @@ pub(crate) fn global_analysis(doc_info: DocInfo) -> Vec<AnalyzedDocument> {
|
|||
roc_target::Target::LinuxX64,
|
||||
roc_load::FunctionKind::LambdaSet,
|
||||
roc_reporting::report::RenderTarget::LanguageServer,
|
||||
RocCacheDir::Persistent(cache::roc_cache_dir().as_path()),
|
||||
RocCacheDir::Persistent(cache::roc_cache_packages_dir().as_path()),
|
||||
roc_reporting::report::DEFAULT_PALETTE,
|
||||
);
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ pub(crate) mod diag {
|
|||
LoadingProblem::CouldNotFindCacheDir => {
|
||||
format!(
|
||||
"Could not find Roc cache directory {}",
|
||||
roc_packaging::cache::roc_cache_dir().display()
|
||||
roc_packaging::cache::roc_cache_packages_dir().display()
|
||||
)
|
||||
}
|
||||
LoadingProblem::UnrecognizedPackageShorthand { shorthand, .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue