-
Notifications
You must be signed in to change notification settings - Fork 25.1k
fix: double quote $SOURCEMAP_FILE to prevent globbing and word splitting #41845
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
Base commit: d3e0430 |
|
@dmytrorykun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
… splitting [PR #41845](facebook/react-native#41845)
|
/rebase - this comment will automatically rebase this PR on top of main. |
80f8c2e to
68aea29
Compare
|
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
68aea29 to
2dfb09c
Compare
|
I wanted to follow up on this PR. I noticed that #42220, a similar fix, was merged, and I'm really happy to see that the issue has been resolved. However, I put a lot of effort into identifying the problem, creating reproducible steps, and writing a detailed fix for this. I was wondering if I could get some feedback on why my PR might have been overlooked and any tips on how I can ensure my contributions get more attention in the future. |
|
@maykonmichel I apologize for what happened. Our usual policy is that, when two similar issues are open, the first one opened should be the one we merge. In this specific case, I think that this was a mistake in good faith.
We are extremely thankful for the work you put into finding the root cause and suggesting a fix. We will try to be more mindful and careful about similar PRs. I know it's not much, but I hope that the explanation helps. |
|
@cipolleschi Thank you so much for the detailed explanation and for acknowledging what happened. I completely understand that managing a large project with many contributors can lead to such oversights, and I appreciate the transparency in your response. I'm still passionate about contributing to community and look forward to more opportunities to help out. |
|
Thank you for your understanding. We really appreciate it! |
Summary:
Fixes #41844.
Enabling source maps with
SOURCEMAP_FILEinios/.xcode.envcaused issues for iOS projects with spaces in their names. The glitch originated from thereact-native-xcode.shscript lacking double quotes around the$SOURCEMAP_FILEargument, leading to unintended word splitting.I've patched this by modifying the script to enclose the
$SOURCEMAP_FILEargument in double quotes, ensuring seamless source map generation, even for projects with spaces in their names.Changelog:
[IOS] [Fixed] - double quote $SOURCEMAP_FILE to prevent globbing and word splitting
Test Plan:
export SOURCEMAP_FILE="$DERIVED_FILE_DIR/main.jsbundle.map"into theios/.xcode.envfile.