Nacho Aldama 2ddd6cf8d3 feat: add support for CoW in Win Dev Drives (#141)
* feat: add support for CoW in Win Dev Drives

* fix: use junctions when symlinks fail

* fix: create junction only for error `1314`

* style: format code

* perf: use always junctions in Windows

* feat: use current drive for default store path

* fix: add missing `os` import

* fix: fix lint errors

* test: add tests for store path in Windows

* docs: explain why we use junctions in windows

* perf: check drive letter only in Windows

* refactor: check for Windows OS in match condition

* revert: check for Windows OS in match condition

* fix: remove windows condition

* fix: remove windows condition

* fix: fix lint errors

* refactor: change windows condition

Co-authored-by: Khải <hvksmr1996@gmail.com>

* style: format code

* fix: check if target is symlink or junction

* perf: optimize `get_drive_letter` fn

* style: remove `return`

* perf: return drive letter as `char`

* fix: fix test error

* refactor: panic when drive letter is none

Co-authored-by: Khải <hvksmr1996@gmail.com>

* style: format code

* perf: load drive letter fn only in Windows

* fix: return correct types in Windows

* style: format code

* fix: fix lint errors

* bump `reflink-copy` version to 0.1.9

* test: improve windows store dir test

* refactor: follow style guides

Co-authored-by: Khải <hvksmr1996@gmail.com>

* Update crates/npmrc/src/custom_deserializer.rs

Co-authored-by: Khải <hvksmr1996@gmail.com>

* test: test the entire store path instead of drive

* test: fix Windows tests

* fix: correct argument types for win store dir

* test: check store dir in same drive

---------

Co-authored-by: Khải <hvksmr1996@gmail.com>
2023-10-09 03:04:04 +03:00
Description
No description provided
MIT 274 MiB
Languages
Rust 55.9%
TypeScript 43.5%
JavaScript 0.5%