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
7-zip fails to extract when specified output path contains forward slashes #10058
Comments
Weird.. works for me with for example:
But anyway I think normalizing is harmless, so if it helps for you why not. I'll push a fix shortly, please confirm it works for you after a |
Works! It's definiately weird, it only happens with the zip archives from our private gitlab repository. It's solved now. Thanks! |
I have the same kind of problem and I have installed When I run
if I try to add manually the double quotes to this logged command, it works my env: OS: Windows 10 === workaround ===
I renamed the 7zip folder and installed UnZip. Now it works! |
Not working with 7zip, hacks like register unzip to win shell not easy. Please fix command in ZipDownloader for space in "Program Files". |
@On1x please open a new issue to report your problem instead of commenting on a closed issue. |
See the full output below, but I did some debugging myself aswell. In short i can reproduce the problem outside of composer via
"C:\Program Files\7-Zip\7z.EXE" x -bb0 -y "C:\dev/vendor/composer/code-quality-constraints-91620bcf4f6bd46b34ca738f9cba6407cddf7371-91620bcf4f6bd46b34ca738f9cba6407cddf7371.zip" -o"C:\dev/vendor/composer/82f2a3c0"
ERROR: Can not open output file : The filename, directory name, or volume label syntax is incorrect. : C:\dev/vendor/composer/90f1a67a\code-quality-constraints-91620bcf4f6bd46b34ca738f9cba6407cddf7371-91620bcf4f6bd46b34ca738f9cba6407cddf7371\tests\Resources\Integration\Constraints\Php\MethodDocBlockConstraintTest\CallableFunctionDefinitionParameter.php
See output below for the full log.
Solution:
The following command does work. All backward slashes in the
-o
argument:"C:\Program Files\7-Zip\7z.EXE" x -bb0 -y "C:\dev/vendor/composer/code-quality-constraints-91620bcf4f6bd46b34ca738f9cba6407cddf7371-91620bcf4f6bd46b34ca738f9cba6407cddf7371.zip" -o"C:\dev\vendor\composer\62ca7c13"
Note: using I've updated my 7zip version to the latest version to see if that remedied things, but the problem above still remains.
My
composer.json
, (slimmed down to only be able to reproduce the problem):Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
The text was updated successfully, but these errors were encountered: