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
compress/gzip: compressed file can be uncompressed with gunzip, but not macOS archive utility #47829
Comments
The program produces a gzipped file, not a tar archive. |
D'oh. I should've looked more closely at the program. Thanks @seankhliao. |
Hi, it seems to be a problem with macOS archive utility. |
If you want a file that the UNIX tar command can open, you need to use the I don't know why/how GNU tar is able to handle bare gzip files that don't contain a tar archive, but that's news to me. I at least would not rely on that behavior. Either way, this doesn't appear to be an issue with the Go standard library. |
sorry for my previous misleading information. a little furthermore information, I use a hello.txt instead the csv file, then macOS can open it with archive utility, I guess this is due to some problem with macOS archive utility with csv gz file. |
What version of Go are you using (
go version
)?go 1.17
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
csv file compressed successfully, can be opened successfully.
What did you see instead?
when I use macOS archive utility to open, I got "Error 79 - Inappropriate file type or format". gunzip does work.
this program works on Linux, but not on macOS M1
and I tried to compress a normal txt which contains "hello" inside, it works on macOS with archive utility.
The text was updated successfully, but these errors were encountered: