JoeCqupt opened a new pull request, #68456: URL: https://github.com/apache/doris/pull/68456
[fix](build) Preserve existing connector configs without failing on macOS ### What problem does this PR solve? Issue Number: None Problem Summary: Rebuilding FE into an existing output directory reaches connector configuration initialization after Maven succeeds. BSD cp -n returns 1 when the destination already exists, so set -e aborts packaging while preserving the file. Skip the copy for existing files or symlinks, and keep copy failures fatal when initializing a missing configuration. ### Release note Fix FE packaging on macOS when connector configuration files already exist. ### Check List (For Author) - Behavior changed: Yes, preserving an existing connector configuration no longer aborts packaging on macOS. - Does this need documentation: No - Manual test (add detailed scripts or steps below) : run `build.sh --fe` on macos many times, there is no fails -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
