decompress icon indicating copy to clipboard operation
decompress copied to clipboard

"link" decompression fails

Open yurydelendik opened this issue 7 years ago • 5 comments

The following file fails to decompress:

https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/nightly/linux_64bit/emscripten-llvm-latest.tar.gz

It fails during link creation due to not-finding the file, however the file is present in the archive.

P.S. on Ubuntu/Linux

yurydelendik avatar Mar 07 '17 22:03 yurydelendik

Would you mind submitting a failing test?

sindresorhus avatar Apr 24 '17 09:04 sindresorhus

Would you mind submitting a failing test?

Sorry, I'm not familiar with ava.

Using a workaround atm (see https://github.com/wasdk/wasdk-utils/blob/73a7a5ba8302adf2b30e03cd05d15bd643cb56ff/src/unpack.ts)

yurydelendik avatar Apr 24 '17 12:04 yurydelendik

The same problem was detected when I tried to unpack avr-gcc-4.9.2-atmel3.5.4-arduino2-i386-apple-darwin11.tar.bz2 (you can download it here: http://downloads.arduino.cc/tools/avr-gcc-4.9.2-atmel3.5.4-arduino2-i386-apple-darwin11.tar.bz2 ). The archive has links and sometimes it unpacks correctly, sometimes it throws an error:

Error: ENOENT: no such file or directory, link 'avr/bin/avr-c++' -> 'some-path/avr/bin/avr-g++'

So I think it depends on the order of unpacking files, sometimes needed files unpacked earlier and it works, sometimes it tried to create a link before unpacking a target file...

(MacOS, but I'm sure that could be reproduced on any platform)

brusherru avatar Aug 01 '17 16:08 brusherru

Same, I tried to unpack riscv toolchain (very like arduino's)

GongT avatar Oct 25 '18 08:10 GongT

Hi guys, will you try to fix it? I started with your lib today and already found this issue.

AllanOricil avatar May 15 '20 20:05 AllanOricil