fastlane/docs

Explain why running `bundle exec fastlane some_command` is faster than `fastlane some_command`

bartekpacia opened this issue ยท 3 comments

I don't know why it's recommended and I haven't found a rationale for this anywhere.

Hi @bartekpacia ๐Ÿ‘‹

I don't know about being faster ๐Ÿค” but here are a few reasons to use Bundler instead of using your machine's native Ruby gem installations, check this out: https://12factor.net/dependencies

And if you use fastlane for iOS, here's the same content tailored for iOS developers: https://ios-factor.com/dependencies

I strongly recommend checking out all the factors in https://ios-factor.com as guidelines for building scalable iOS applications ๐Ÿ˜Š

But also, from bundler.io:

Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.

Bundler is an exit from dependency hell, and ensures that the gems you need are present in development, staging, and production.

I hope this helps!

Thanks for your input @rogerluan :)

I hope somebody, someday, will solve this mystery. It really does say "faster":

$ fastlane                                                                                                                                                                                                 exit 1
[โœ”] ๐Ÿš€
[17:33:59]: fastlane detected a Gemfile in the current directory
[17:33:59]: However, it seems like you didn't use `bundle exec`
[17:33:59]: To launch fastlane faster, please use
[17:33:59]:
[17:33:59]: $ bundle exec fastlane
[17:33:59]:
[17:33:59]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile