Skip to content

Commit

Permalink
Fix search path for typst packages.
Browse files Browse the repository at this point in the history
Change from
`cache/typst/packages/preview/packagename-major.minor.patch` to
`cache/typst/packages/preview/packagename-major/minor.patch`.

Closes #18.
  • Loading branch information
jgm committed Nov 29, 2023
1 parent 71c2494 commit 2a92d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Typst/Evaluate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ findPackageEntryPoint modname = do
let localDir = dataDir </> "typst"
let cacheDir = cacheDir' </> "typst"
#endif
let subpath = "packages" </> namespace </> (name <> "-" <> version)
let subpath = "packages" </> namespace </> name </> version
inLocal <- lift $ checkExistence operations (localDir </> subpath </> "typst.toml")
tomlPath <-
if inLocal
Expand Down

0 comments on commit 2a92d6b

Please sign in to comment.