Skip to content

Fix/namespaces for custom packages - #178

Merged
breezykermo merged 2 commits into
mainfrom
fix/namespaces-for-custom-packages
Sep 17, 2026
Merged

breezykermo merged 2 commits into
mainfrom
fix/namespaces-for-custom-packages

Conversation

@breezykermo

@breezykermo breezykermo commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

A namespace configured with releases = ... cached its packages in the shared Typst package cache, ~/.cache/typst/packages/<ns>/<name>/<version>, with nothing in that path derived from the host they came from: two projects on one machine backing the same namespace name with different hosts landed in one directory, whichever downloaded first winning, and a copy dropped there by hand shadowed the configured host without a word. A configured releases namespace now caches under rheo/releases/<slug of its source> — the same source-keyed shape the repo mode has always used for its checkouts — so two hosts get two directories and nothing in the Typst cache can stand in for what a project declares. The built-in @rheo backend keeps the shared cache: its host is a single fixed constant, so there is no isolation to win, and moving it would cost every existing user a re-download and break resolving it from a symlinked checkout; a developer wanting that kind of override for their own namespace should reach for path = ... instead. The one-time cost is that each configured namespace re-downloads its packages once.

@breezykermo
breezykermo merged commit 24b316d into main Sep 17, 2026
5 checks passed
@breezykermo
breezykermo deleted the fix/namespaces-for-custom-packages branch September 17, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant