Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Fix Bundler 2 issue #107

Merged
merged 2 commits into from
Jan 15, 2020
Merged

Fix Bundler 2 issue #107

merged 2 commits into from
Jan 15, 2020

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Jan 15, 2020

Bundler 2 auto switches to Bundler 1 if Gemfile.lock selects Bundler 1. To do so Bundler 1 version needs to be installed.

Test test_xcode_11_ccertificate is running on Edge stack, as the issue came in that environment, see the CI builds.

@godrei godrei requested a review from a team January 15, 2020 08:20
@ghost ghost requested review from lszucs and removed request for a team January 15, 2020 08:20
@godrei godrei merged commit d67ead3 into master Jan 15, 2020
@godrei godrei deleted the bundler_2 branch January 15, 2020 15:14
@sadlerjw
Copy link

@godrei Hi there, this change has broken my build with the error:

ERROR: Error installing bundler:
"bundle" from bundler conflicts with /Users/vagrant/.rbenv/versions/2.6.5/bin/bundle

(I am still using the Xcode 11.2.x stack, not Xcode 11.3.x)
Reverting to version 1.5.0 of this step solved the problem.

From the comments in #106 it suggests that using --force in the gem install line added in this PR would fix the issue and allow both versions of bundler to co-exist. (Although I am a Ruby neophyte, I might be misunderstanding something.)

@cathyharmon
Copy link

We are aware of this issue and are currently working to get it corrected. Until it is fixed, please try the following workaround:

  • Use the 1.5.0 version of the iOS Auto Provision step (you can select this as an input to the step in the workflow editor)

  • Add a script step prior to the iOS Auto Provision step to install bundler 1.17.3. The script step should have 'gem install bundler --force -v 1.17.3`

So sorry for the inconvenience!

@sadlerjw
Copy link

No worries, thanks for looking into it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants