Skip to content

fix: migrate to standard which() helper to prevent ci spam#29933

Merged
iBotPeaches merged 3 commits into
fastlane:masterfrom
iBotPeaches:which-rework
Apr 30, 2026
Merged

fix: migrate to standard which() helper to prevent ci spam#29933
iBotPeaches merged 3 commits into
fastlane:masterfrom
iBotPeaches:which-rework

Conversation

@iBotPeaches

Copy link
Copy Markdown
Member

Problem

image

Reviewing CI on Windows is impossible. Its full of spam.

Solution

Introduce a new helper for which (system binary) in order to suppress output.

Resolves rubocop Require/MissingRequireStatement offense for the
Helper.which method that delegates to FastlaneCore::CommandExecutor.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@iBotPeaches iBotPeaches marked this pull request as ready for review March 3, 2026 12:42
unless Helper.test?
UI.message("Install using `brew install appledoc`")
UI.user_error!("appledoc not installed") if `which appledoc`.length == 0
UI.user_error!("appledoc not installed") if Helper.which('appledoc').nil?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do we want to use unless Helper.which('appledoc') pattern?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

swapped them all

Comment thread fastlane_core/lib/fastlane_core/clipboard.rb Outdated
@lacostej

Copy link
Copy Markdown
Collaborator

Note: I didn't flag all potential removal of .nil?

@iBotPeaches iBotPeaches merged commit e1ca504 into fastlane:master Apr 30, 2026
9 checks passed

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @iBotPeaches 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a month, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀"

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Congratulations! 🎉 This was released as part of fastlane 2.234.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants