-
Notifications
You must be signed in to change notification settings - Fork 27.4k
tar xvzf angular-1.0.1.tgz fails #1226
Comments
It works for me on Mac.
I'm going to close this unless you can repro the issue. Also please check the md5 hash to verify that your file is not corrupted. |
Same thing happened to me on Ubuntu. gunzip then tar worked though. |
the problem is that the file is compressed twice: $ file Download/angular-1.0.1.tgz $ tar tzvf Download/angular-1.0.1.tgz $ gunzip -v Download/angular-1.0.1.tgz $ file Download/angular-1.0.1.tar $ tar tvf Download/angular-1.0.1.tar $ mv Download/angular-1.0.1.tar Download/angular-1.0.1.tgz $ ls -l Download/angular-1.0.1.tar $ file Download/angular-1.0.1.tar $ tar tzvf Download/angular-1.0.1.tar |
@eMBee the file is definitely not compressed twice. We use the following command in our Rakefile to create it:
I think that there is some kind of incompatibility between the mac and linux version of tar, which while weird, is plausible.
we can try using gnutar:
and see if that makes a difference, or just use zip and get the windows-friendly benefit in addition to fixing the linux issues. |
please take a look at the filesize when it is uncompressed the first time. i can't imagine how an incompatibility causes gnutar to have to decompress twice. i can't find a script that calls 'rake package' though, so maybe that's done manually |
we definitely don't compress twice. I don't know what's the problem, so I'm just going to switch to zip |
- restructure rake tasks this splits up the concatination and minification into two tasks so that we can just build angular.js quickly without wasting time with minification which is often not needed when just debugging some issue on 3rd party site. - use symlinks when creating final zip file - switch from btar to zip - get rid of version numbers from filenames - rewrite version numbers in all index files Closes #1226
@IgorMinar Just noticed the readme needs to be updated, too. |
$tar xvzf angular-1.0.1.tgz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
I can't tell if I'm just screwing up every which way with tar, or if the file has been corrupted. What am I doing wrong?
The text was updated successfully, but these errors were encountered: