You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current default configuration for the install-deps command results in broken behavior when running bundle exec commands in project subdirectories:
$ bundle exec fastlane detox_build
bundler: command not found: fastlane
Install missing gem executables with `bundle install`
That error occurs after a successful bundle install only because it was run in ~/project/android instead of ~/project/
By default, bundler will search up from the current working directory until it finds a Gemfile. However, setting the gemfile/BUNDLE_GEMFILE configuration option results in this getting short-circuited, even when set to Gemfile.
If the Gemfile name hasn't been customized, the gemfile configuration option should not be set.
Additional Information:
It might also be worth it it to not set the path/BUNDLE_PATH configuration option either the current value (vendor/bundle) is already the default when using Bundler in deployment mode. It doesn't seem to be causing the same problems as the gemfile setting though, so it's a judgement call…
The text was updated successfully, but these errors were encountered:
@matiaskorhonen If I understood well, the problem is coming when line bundle config set gemfile "$PARAM_GEMFILE" is executed. Why is it a problem that the value is set to Gemfile?
Because you might need to run commands in a project subdirectory and explicitly setting gemfile to a relative path causes Bundler not to locate the Gemfile in the parent directory (the default Bundler behaviour).
Orb version: 2.0.0
What happened:
The current default configuration for the
install-deps
command results in broken behavior when runningbundle exec
commands in project subdirectories:That error occurs after a successful
bundle install
only because it was run in~/project/android
instead of~/project/
By default, bundler will search up from the current working directory until it finds a Gemfile. However, setting the
gemfile
/BUNDLE_GEMFILE
configuration option results in this getting short-circuited, even when set toGemfile
.You can see this behavior here:
Expected behavior:
If the Gemfile name hasn't been customized, the
gemfile
configuration option should not be set.Additional Information:
It might also be worth it it to not set the
path
/BUNDLE_PATH
configuration option either the current value (vendor/bundle
) is already the default when using Bundler in deployment mode. It doesn't seem to be causing the same problems as thegemfile
setting though, so it's a judgement call…The text was updated successfully, but these errors were encountered: