Skip to content

Fix skipping of .utpm dir when copying - #136

Merged
ensko merged 2 commits into
typst-community:mainfrom
ensko:fix-copy-dir-utpm
Oct 27, 2026
Merged

ensko merged 2 commits into
typst-community:mainfrom
ensko:fix-copy-dir-utpm

Conversation

@ensko

@ensko ensko commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

This fixes a bug that I introduced when refactoring copy_dir_all: skipping .utpm dirs did not actually skip them, but try to copy them as files.

ensko added 2 commits October 27, 2026 09:14
Fails for now: copy_dir_all tries to copy the .utpm directory as a file.
The check meant to skip .utpm directories instead sent them to
fs::copy, which fails for directories, so installing or cloning a
package containing one aborted.
@ensko ensko changed the title Fix copy dir utpm Fix skipping of .utpm dir when copying Oct 27, 2026
@ensko
ensko merged commit bcb8909 into typst-community:main Oct 27, 2026
6 checks passed
@ensko
ensko deleted the fix-copy-dir-utpm branch October 27, 2026 10: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