Skip to content
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

Fix missing Ruby during react-native Podfile detection #227

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

lpusok
Copy link
Contributor

@lpusok lpusok commented Feb 7, 2022

Resolves: https://bitrise.atlassian.net/browse/STEP-1742

Context

Set the temp dir as working dir, so the project defined .ruby-version does not cause ruby resolution to fail:

[ ... ] ruby script failed, error: rbenv: version `2.7.4' is not installed (set by /[ ... ]/MyTestApp/.ruby-version)

Changes

  • Removed runRubyScriptForOutput inDir parameter
  • Improved error messages

}
// Set the temp dir as working dir, so the project defined `.ruby-version` does not cause ruby resolution to fail:
// [ ... ] ruby script failed, error: rbenv: version `2.7.4' is not installed (set by /[ ... ]/MyTestApp/.ruby-version)
cmd.SetDir(tmpDir)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Directory is still changed inside the Cocoapod resolution script (podfile.go):

Dir.chdir(File.dirname(podfile_path))

@lpusok lpusok merged commit 1a33592 into master Feb 7, 2022
@lpusok lpusok deleted the STEP-1742-podfile-detection-error branch February 7, 2022 15:50
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