From 3b34d398b61204dd6af30ca4866cf04ae88cc2ac Mon Sep 17 00:00:00 2001 From: FernTheDev <15272073+Fernthedev@users.noreply.github.com> Date: Sun, 14 Jul 2024 22:01:54 -0400 Subject: [PATCH] Fix symlinks from extracting zip. Related to https://github.com/zip-rs/zip2/pull/201 --- Cargo.lock | 3 +-- Cargo.toml | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4012f1b..5aaf5b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2818,8 +2818,7 @@ dependencies = [ [[package]] name = "zip" version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "775a2b471036342aa69bc5a602bc889cb0a06cda00477d0c69566757d5553d39" +source = "git+https://github.com/nichmor/zip2.git?branch=fix/soft-links-should-remain-the-same#a3232a211904e396274a0ff632438f24667e21f6" dependencies = [ "aes", "arbitrary", diff --git a/Cargo.toml b/Cargo.toml index 9e87238..072a834 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,11 @@ pubgrub = "0.2" owo-colors = "4" dirs = "5.0.0" keyring = "3" -zip = "2" + +# Use PR with symlink fix for Unix systems. +# zip = "2" +zip = { git = "https://github.com/nichmor/zip2.git", branch = "fix/soft-links-should-remain-the-same", version = "2.1.3" } + walkdir = "2" symlink = "0.1.0" fs_extra = "1.2" @@ -87,4 +91,4 @@ strip = "symbols" [profile.dev.package.backtrace] -opt-level = 3 \ No newline at end of file +opt-level = 3