From 1c7105ba82048e74563e6aad3a824bb53dae1663 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 1 Aug 2023 00:55:54 +0200 Subject: [PATCH] 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 --- crates/typst-cli/src/package.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-cli/src/package.rs b/crates/typst-cli/src/package.rs index 4bde65244..cbec1da0b 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 { 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);