fix(package): search Linux home data fallback - #2668
Open
floze-the-genius wants to merge 1 commit into
Open
Conversation
floze-the-genius
force-pushed
the
fix/local-package-search-path
branch
from
July 19, 2026 10:47
b73534b to
8d9e237
Compare
floze-the-genius
marked this pull request as ready for review
July 19, 2026 10:50
floze-the-genius
requested review from
Enter-tainer and
Myriad-Dreamin
as code owners
July 19, 2026 10:50
floze-the-genius
force-pushed
the
fix/local-package-search-path
branch
from
August 9, 2026 16:49
8d9e237 to
bdbc630
Compare
Author
|
@Myriad-Dreamin I rebased this exactly onto current main ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2492.
Summary
local package paths are used
On Linux the default order is now:
dirs::data_dir()/typst/packages$HOME/.local/share/typst/packagesThe paths are deduplicated. Non-Linux behavior is unchanged, and callers that
provide an explicit package path still use only that path.
Validation
Rebased exactly onto current
main(b1119249); the range-diff maps theoriginal commit
8d9e237eunchanged tobdbc6301.RUSTFLAGS=-Dwarnings cargo test -p tinymist-package --features system— 2/2 passed on macOS
cargo clippy -p tinymist-package --all-targets --features system --no-deps -- -D warnings— passed
cargo fmt --all -- --check— passedgit diff --check— passedThe Linux-only deduplication test is
cfg-excluded on this macOS host and stillrequires the repository Linux workflow. Dependency-inclusive Clippy currently
stops in unchanged
maincode atcrates/tinymist-std/src/fs/paths.rs:829(undocumented_unsafe_blocks) beforereaching this crate; the targeted
--no-depscheck above passes.AI assistance
OpenAI Codex assisted with investigation, implementation review, rebase, and
validation. I reviewed the final diff and take responsibility for it.