errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.45k stars 153 forks source link

vale sync fails with invalid cross-device link #432

Closed carno closed 2 years ago

carno commented 2 years ago

When trying to use vale sync, every execution (using sample config https://vale.sh/hub/microsoft/) fails with

vale sync
Downloading packages [0/1] █                                                                                                           0% | 0s
rename /tmp/Microsoft2055408144/Microsoft /home/(…)/style/Microsoft: invalid cross-device link

As I understand (I'm not a go programmer) that is actually expected in os.Rename because /tmp is a tmpfs filesystem in my OS.

df -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/VGsys-LVroot  196G  172G   15G  93% /
/dev/mapper/VGsys-LVhome  262G   37G  212G  15% /home
(…)
tmpfs                      16G   12M   16G   1% /tmp

I assume I'm not the only one who has /tmp as tmpfs so it would be great if one could pass another directory for temporary download or if sync would support moving downloaded files between filesystems.

jdkato commented 2 years ago

This should be fixed now.