macdoor commented on PR #18036:
URL: 
https://github.com/apache/dolphinscheduler/pull/18036#issuecomment-4018984501

   Hi @SbloodyS,
   
   I built the package on macOS with the current change (tar `--exclude='._*' 
--exclude='.DS_Store'`) and extracted the resulting 
`apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz` on Linux. There is still a 
lot of junk:
   
   ```
   tar xvfz apache-dolphinscheduler-dev-SNAPSHOT-bin.tar.gz
   ._apache-dolphinscheduler-dev-SNAPSHOT-bin
   tar: Ignoring unknown extended header keyword 
'LIBARCHIVE.xattr.com.apple.provenance'
   apache-dolphinscheduler-dev-SNAPSHOT-bin/
   apache-dolphinscheduler-dev-SNAPSHOT-bin/._master-server
   tar: Ignoring unknown extended header keyword 
'LIBARCHIVE.xattr.com.apple.provenance'
   apache-dolphinscheduler-dev-SNAPSHOT-bin/master-server/
   apache-dolphinscheduler-dev-SNAPSHOT-bin/._ui
   ...
   ```
   
   So `--exclude` alone does not stop macOS `tar` from adding `._*` 
(AppleDouble) entries and extended-attribute headers when **creating** the 
archive; it only excludes paths when reading the directory. On macOS, the 
system tar still injects those when packing. To get a clean archive for Linux 
when building on macOS, we likely need either (1) `COPYFILE_DISABLE=1` and `tar 
--no-xattrs` (and possibly cleaning `._*` before repack), or (2) to document 
that the release tar.gz must be built on Linux only.
   
   How would you like to proceed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to