tony-o / raku-fez

This project is for 'fez', raku's cool new shiny dist uploader & manager. If you're a module author you should definitely be using this sweet thang. ;;;;;;;;;;;;;; This project and the underlying infrastructure is supported out of my own pocket and through donations. If you'd like to donate please check here: https://www.patreon.com/oynot
Artistic License 2.0
20 stars 12 forks source link

added ENV var to exclude AppleDouble files when pax is run #74

Closed masukomi closed 1 year ago

masukomi commented 1 year ago

Fixes #72

On macOS you can set the COPYFILE_DISABLE environment variable to literally anything, and it will cause bsdtar[^1] to not include the ._ AppleDouble files, which were the cause of Issue #72.

This fix presumes there's no good reason to include those when distributing resources because preserving Finder flags and labels and such doesn't make a lot of sense in this usage context.

[^1]: bsdtar is symlinked to tar, and gnutar, but not pax... ?anymore?

masukomi commented 1 year ago

bump.

This bug potentially prevents folks from uploading on macOS unless they agree to ignore errors which, really, they should never do. I feel like we really ought to get it merged and update fez asap. Please let me know if you want anything changed in this.

2colours commented 1 year ago

@masukomi that's right - we had a long journey with @sdondley to find the very same problem...

sdondley commented 1 year ago

I ran into this same problem. Please see: https://stackoverflow.com/questions/75190418/no-single-root-directory-found-all-dists-must-extract-to-a-single-directory-e

What's odd is that if I roll back to 2022.07, I can upload again. With 2022.12, I have the problem. Not sure what explains this.

tony-o commented 1 year ago

@sdondley @2colours @masukomi this has been released with fez:ver<40> -