Skip to content

Fix file permissions on macOS 15.4 #3141

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

Conversation

adincebic
Copy link
Contributor

There have been changes to rsync on macOS 15.4 which require us to have write permissions here.

Signed-off-by: Adin Cebic <cebic.ad@gmail.com>
@adincebic adincebic requested a review from a team as a code owner March 24, 2025 11:59
@@ -31,6 +31,7 @@ if [[ "$ACTION" != indexbuild ]]; then
ln -sfh "$PWD/$BAZEL_OUTPUTS_PRODUCT_BASENAME" "$TARGET_BUILD_DIR/$PRODUCT_NAME"
else
# Product is a bundle
chmod -R +w "$BAZEL_OUTPUTS_PRODUCT_BASENAME" "$TARGET_BUILD_DIR" # Starting on MacOS 15.4, rsync will fail if it does not have write access on the src or dst directory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this adjust permissions in bazel-out? If so, we can't do that.

@brentleyjones
Copy link
Contributor

This seems odd. rsync shouldn't have to have write access to where its copying from 🧐

@adincebic
Copy link
Contributor Author

This seems odd. rsync shouldn't have to have write access to where its copying from 🧐

Makes sens. Didn't give it much thought, we had it as a patch for quite some time, I'll take a look at it again.

@brentleyjones
Copy link
Contributor

Adjusted in #3157.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants