-
-
Notifications
You must be signed in to change notification settings - Fork 392
m1 related unarchive inconsistency, dropping the root dir #337
Comments
I'm a bit confused by your outputs here. Where is I'm inclined to think that the code you're using is different than what is being shared here, but I will need to reproduce your setup 100% exactly if I'm going to be able to help. Otherwise, all I can really do is offer troubleshooting tips. Did you have a chance to look into #336 more? I wasn't able to reproduce it. And now I'm wondering if you're simply running different code on the two platforms. |
ah shoot I was trying to clean up the log message I had originally included I am pretty sure its not different code, namely, I'm generating a binary via goreleaser and then dropping that binary into the various platforms specifically to make sure I didn't do such a thing :-) Code is currently here: https://github.com/dpastoor/qvm/blob/main/internal/unarchive/unarchive.go |
I'm going to try to make a reproducible example in a standalone repo you can pull from and run that across the couple platforms so it'll be easier to diagnose |
quick update - started with the existing (large) release and found a different bug on windows, the root dirs don't even show up at all to the handler func (at least per printing in the handler) 🤪 definitely need a cross platform reproducible example to unravel all this |
Thanks for the update. Definitely need to get our ducks in a row before we can make any progress I think. Will be very interested in a x-plat repro once you have it ready 👍 |
I have some "good" news - I have been unable to reproduce the differences across mac/linux for the tarballs with the simple examples. This led to a careful rabbit hole of going back to the original releases I was pulling from github and I had some findings:
More details to follow, but wanted to FYI you going into the weekend that this seems more about archiver doing exactly what it sees, not buggy behavior. I still need to look into archiving inconsistencies for #336 and now at least I have some minimal examples to check against. |
Any more updates? If there's nothing to do here, I'll probably close the issue. Thanks for your participation! |
So far been running smoothly and haven't had any (small set) of users report any issues across any platform! I'd say good to close |
Great! Let me know if anything more specific crops up. |
What version of the package or command are you using?
github.com/mholt/archiver/v4 v4.0.0-alpha.6.0.20220421032531-8a97d87612e9
What are you trying to do?
unarchive a tar.gz directory, given the basic wrapper function:
What steps did you take?
On the mac, given a tar archive with a root dir of
quarto-0.9.532
and directoriesunpacking manually, can likewise see a directory structure:
however when I add
fmt.Println("name in archive: ", f.NameInArchive)
I see on the m1 macOn linux, I do see the correct behavior.
What did you expect to happen, and what actually happened instead?
expect to unarchive the directory as present in the archive
How do you think this should be fixed?
normalize behavior
Please link to any related issues, pull requests, and/or discussion
likely the inverse issue of #336
Bonus: What do you use archiver for, and do you find it useful?
The text was updated successfully, but these errors were encountered: