diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-08-01 00:55:54 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-08-01 00:59:40 +0200 |
| commit | 1c7105ba82048e74563e6aad3a824bb53dae1663 (patch) | |
| tree | a3fefd77a9535ab321fccd7ba7fcdec2b8695728 /crates/typst-cli/src/package.rs | |
| parent | 66df130ca4c9217d137cba0778d33c8ff9349d33 (diff) | |
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
Diffstat (limited to 'crates/typst-cli/src/package.rs')
| -rw-r--r-- | crates/typst-cli/src/package.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/package.rs b/crates/typst-cli/src/package.rs index 4bde6524..cbec1da0 100644 --- a/crates/typst-cli/src/package.rs +++ b/crates/typst-cli/src/package.rs @@ -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); |
