mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
Change package search and caching path
Brings local packages in line with changes to the package repository. See also: https://github.com/typst/packages/issues/61
This commit is contained in:
parent
66df130ca4
commit
1c7105ba82
@ -12,7 +12,7 @@ use super::color_stream;
|
||||
/// Make a package available in the on-disk cache.
|
||||
pub fn prepare_package(spec: &PackageSpec) -> PackageResult<PathBuf> {
|
||||
let subdir =
|
||||
format!("typst/packages/{}/{}-{}", spec.namespace, spec.name, spec.version);
|
||||
format!("typst/packages/{}/{}/{}", spec.namespace, spec.name, spec.version);
|
||||
|
||||
if let Some(data_dir) = dirs::data_dir() {
|
||||
let dir = data_dir.join(&subdir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user