Skip to content

Fix an rsync issue causing "Permission denied" errors #3176

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thiagohmcruz
Copy link
Contributor

Follow up to #3175

@thiagohmcruz thiagohmcruz force-pushed the thiago/workaround-rsync-perm-denied-errors branch from 4df68bc to b06bcfe Compare May 8, 2025 20:37
@@ -63,6 +63,9 @@ if [[ -n "${BAZEL_OUTPUTS_DSYM:-}" ]]; then
$(xargs -n1 <<< "$BAZEL_OUTPUTS_DSYM") \
"$TARGET_BUILD_DIR"

# Works around an rsync issue causing "Permission denied" errors
chmod +w "$TARGET_BUILD_DIR"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we want to do this unconditionally or per OS version? Lacking some context about the previous PR adding --perms so wanted to confirm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @luispadron @brentleyjones when you're available I'd appreciate if you could clarify please 🙇

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want a version check.

@thiagohmcruz thiagohmcruz force-pushed the thiago/workaround-rsync-perm-denied-errors branch from b06bcfe to 7f854f4 Compare May 8, 2025 20:39
@thiagohmcruz thiagohmcruz changed the title Works around an rsync issue causing "Permission denied" errors Fix an rsync issue causing "Permission denied" errors May 8, 2025
@thiagohmcruz thiagohmcruz marked this pull request as ready for review May 8, 2025 21:21
@thiagohmcruz thiagohmcruz requested a review from a team as a code owner May 8, 2025 21:21
@iMostfa
Copy link

iMostfa commented May 11, 2025

for some reason i'm still facing rsync(6413): error: mkstempat
on latest release, and even when testing your branch 15.4.1 (24E263)

@thiagohmcruz
Copy link
Contributor Author

for some reason i'm still facing rsync(6413): error: mkstempat on latest release, and even when testing your branch 15.4.1 (24E263)

@iMostfa are you able to provide a repro for this? Maybe a small zipped project or using of the examples in rules_xcodeproj? Maybe the project I used to repro this is missing an edge case 🤔

@iMostfa
Copy link

iMostfa commented May 13, 2025

@thiagohmcruz
i tried to make a small repo to reproduce, but for some reason, it works on a small project, but not on my main project.

is there anything else i can do to help you debug the issue ?

@thiagohmcruz
Copy link
Contributor Author

@thiagohmcruz i tried to make a small repo to reproduce, but for some reason, it works on a small project, but not on my main project.

is there anything else i can do to help you debug the issue ?

@iMostfa there's an ongoing discussion in the Bazel slack, some folks finding issues in their internal setup as well, maybe check that thread and see if it helps?

I'm holding this PR for now as I'm not sure if it's fully addressing the issue. I'll have to run more tests to verify that, thx for the help so far!

@thiagohmcruz
Copy link
Contributor Author

It seems like there's a fix in the works, closing this for now.

@brentleyjones
Copy link
Contributor

I don't think the homebrew path is a long term fix. It would be nice to have a different reliable route if possible.

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.

3 participants