Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected]: decompress error #6451

Open
D9521 opened this issue Jan 13, 2025 · 2 comments
Open

[email protected]: decompress error #6451

D9521 opened this issue Jan 13, 2025 · 2 comments

Comments

@D9521
Copy link

D9521 commented Jan 13, 2025

WARN Purging previous failed installation of git-filter-repo.
ERROR 'git-filter-repo' isn't installed correctly.
Removing older version (2.47.0).
'git-filter-repo' was uninstalled.
Installing 'git-filter-repo' (2.47.0) [64bit] from 'main' bucket
Loading v2.47.0.zip from cache
Checking hash of v2.47.0.zip ... ok.
Extracting v2.47.0.zip ... ERROR Exit code was 2!
Failed to extract files from C:\Users\denny95\scoop\apps\git-filter-repo\2.47.0\v2.47.0.zip.
Log file:
~\scoop\apps\git-filter-repo\2.47.0\7zip.log

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=git-filter-repo%402.47.0%3a+decompress+error

@cj-wong
Copy link

cj-wong commented Jan 16, 2025

I'm also having this issue. I've included the log file below:


7-Zip 24.09 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29

Scanning the drive for archives:
1 file, 239985 bytes (235 KiB)

Extracting archive: C:\Users\user\scoop\apps\git-filter-repo\2.47.0\v2.47.0.zip
--
Path = C:\Users\user\scoop\apps\git-filter-repo\2.47.0\v2.47.0.zip
Type = zip
Physical Size = 239985
Comment = 6f79afc8c90c592a3052e6cc53c2ca8907515bca


Sub items Errors: 2

Archives with Errors: 1

Sub items Errors: 2
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\user\scoop\apps\git-filter-repo\2.47.0\git-filter-repo-2.47.0\contrib\filter-repo-demos\filter-branch-ish
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\user\scoop\apps\git-filter-repo\2.47.0\git-filter-repo-2.47.0\git_filter_repo.py

It looks like the problem is that scoop tries to create symbolic links to the aforementioned files, but on Windows (10 and under; not sure about 11), the user needs admin privileges to create them.

The upstream project and its zip archive use symbolic links in the git repository. I don't know why it's having issues now. The upstream repository has had those symbolic links since 2019. I tried downgrading 7zip, thinking that was the issue (I had upgraded 7zip the same day), but I also have the same issue. I've also tried using the last version of git-filter-repo on my system, but it also doesn't unpack correctly.

As a workaround, I fixed this issue by opening an elevated shell and installing it that way.

@D9521
Copy link
Author

D9521 commented Jan 17, 2025

I tried running it with admin privileges and it worked.
Thank you.

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

No branches or pull requests

2 participants