-
Notifications
You must be signed in to change notification settings - Fork 15
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
brew formula using ruby@2.5 dependency #101
Conversation
…hine on brew cask install fastlane
Hey I made some adjustments to your changes for the new installer package. * Add missing `fastlane_shim` file * remove ssl certificate environment line from `bundle-env` * added option switch `-u` to skip prompts for autoupdate/install
…n-brew-install Fix 2.0 installer script
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
The changes here aside, the reason we originally used Did we reevaluate this / ask homebrew maintainers / plan to publish our own tap? |
@milch I had some tweets with Mike McQuaid this weekend and this should be good and is preferred 😊 |
Interesting, though he may not be aware that fastlane can update itself, which seems to be the only remaining blocker: https://github.com/fastlane/fastlane/blob/e81ae36abb59dd105f3be3105016e796733499fb/fastlane/lib/fastlane/actions/update_fastlane.rb This part would also need to be updated to instruct users to update using IIRC at the time we had multiple blockers to being a regular homebrew formula, the self updating thing seems to be the only thing that could be against the guidelines at the moment. Let’s ask @MikeMcQuaid directly, though. Maybe it doesn’t matter much at all |
@milch Good call on the self updating bit! I will ask and report back 👌 |
Yes, it would be good to address that upstream first if possible. If not, the formula will need to patch the relevant functionality in until the upstream PR is merged.
Just to save you time on the PR: these are not Homebrew-specific caveats but more general usage instructions so can be omitted on the relevant PR (and the functions called accordingly, too). |
@MikeMcQuaid Thanks for jumping in here! I'm a homebrew user but pretty new to distributing something through it 😇
|
Correct.
It'll be in the PATH by default and beyond that is the same for every Homebrew package so can be omitted. |
😱 OMG that makes so much sense. I was thinking waaaaayyyy too hard about that. Updating fastlane options1. Manually update the
|
I think option 1/2 would definitely align best with user expectations. Between those options, on one hand, it’d be nice if install instructions were just Out of these two issues I think the latter is more important, so I’d tend to gravitate to the second option. Maybe a mixed approach could also work, where we publish versions to homebrew in a cadence that they can handle (say, semi-monthly) but control our own tap for the latest versions and nightlies (assuming users can seamlessly change versions between formulas that are contained in different taps) Sidenote: I just remembered another reason for why we bundled ruby directly in the packaged fastlane, which was that at the time we were getting a lot of issues from people with problems installing/upgrading fastlane due to other gems they had installed (or incompatible OpenSSL versions Ruby was compiled with). Moving to a homebrew vended Ruby may bring that back, though I don’t know if that is still a frequently occurring issue for fastlane users |
I think I like option 2 approach too so that we are in full control of the cadence and aren't burdening the homebrew team
I definitely saw this when I was gutting the cask process. The problem is its pretty much impossible to package new versions of Ruby 😔 I spent quite a bit of time getting OpenSLL to work with the |
This is the best option except you can do it automatically using something like https://github.com/marketplace/actions/bump-homebrew-formula or just using
This is fine.
Indeed.
This.
Yes they may have to wait but generally version bumps take <24h (and often less). You can also CC me to speed things up.
We definitely don't consider updates a burnen |
Sounds good, let’s go with the option 1 then 👍 Thanks for the help Mike! So just to summarize the open TODOs for that approach are:
That last one can probably be done after it becomes available in homebrew, but should probably be a fast follow so users don’t get confused when the update checker tells them that there is an update but |
Option 1 it is! @milch Thanks for getting this convo started and for summarizing what needs to change ❤️ |
@milch Got the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for the input @MikeMcQuaid!
Motivation
Fixes fastlane/fastlane#15496
Closes #99
Closes #95
Problem
2.28.3
Goal
Description
brew install fastlane
(instead ofbrew cask install fastlane
)ruby@2.5
dependency which installs really quickly without compilinginstall
copiesbundle-env
,fastlane
into the brew fastlane directoryBrew formula