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

Report active Ruby version #95

Merged
merged 11 commits into from
Mar 29, 2023
Merged

Report active Ruby version #95

merged 11 commits into from
Mar 29, 2023

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Mar 23, 2023

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MAJOR/MINOR/PATCH version update

Context

Print and report effective Ruby version that runs the Fastlane scripts.

Changes

  • Parse Ruby version string from ruby --version output, for both the plain Ruby setup and the Bundler-based setup
  • Implement a tracker that logs common properties, as well as the step_ruby_version_changed event.
  • Update go-utils and go-steputils in the project

Investigation details

Decisions

@@ -183,7 +183,8 @@ func (f FastlaneRunner) getWorkDir(config Config) (string, error) {
func (f FastlaneRunner) checkForRbenv(workDir string) {
f.logger.Println()
f.logger.Infof("Checking rbenv version")
if _, err := f.cmdLocator.LookPath("rbenv"); err != nil {
if _, err := f.cmdLocator.LookPath("rbenv"); err == nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The err check needs to be flipped

@ofalvai ofalvai marked this pull request as ready for review March 27, 2023 17:34
dependencies.go Outdated Show resolved Hide resolved
@ofalvai ofalvai merged commit aec09a6 into master Mar 29, 2023
@ofalvai ofalvai deleted the BE-879-report-ruby-version branch March 29, 2023 07:40
@ofalvai ofalvai mentioned this pull request Apr 20, 2023
2 tasks
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