Skip to content

Commit acce342

Browse files
chore(deps): migrate dirs-next to dirs for updater plugin (#1506)
* Migrate dirs-next to dirs for updater * Add change file * dirs_next -> dirs
1 parent 6dedb3f commit acce342

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.changes/updater-dirs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"updater": patch
3+
---
4+
5+
Switch from `dirs_next` to `dirs` as `dirs_next` is now unmaintained while `dirs` is

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/updater/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ zip = { version = "2", default-features = false, optional = true }
3838
windows-sys = { version = "0.52.0", features = [ "Win32_Foundation", "Win32_UI_WindowsAndMessaging" ] }
3939

4040
[target."cfg(target_os = \"linux\")".dependencies]
41-
dirs-next = "2"
41+
dirs = "5"
4242
tar = { version = "0.4", optional = true }
4343
flate2 = { version = "1", optional = true }
4444

plugins/updater/src/updater.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ impl Update {
733733

734734
let tmp_dir_locations = vec![
735735
Box::new(|| Some(std::env::temp_dir())) as Box<dyn FnOnce() -> Option<PathBuf>>,
736-
Box::new(dirs_next::cache_dir),
736+
Box::new(dirs::cache_dir),
737737
Box::new(|| Some(self.extract_path.parent().unwrap().to_path_buf())),
738738
];
739739

0 commit comments

Comments
 (0)