Skip to content

Work around RubyGems TTY detection #2234

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

Merged
merged 1 commit into from
Dec 18, 2019
Merged

Work around RubyGems TTY detection #2234

merged 1 commit into from
Dec 18, 2019

Conversation

pirj
Copy link
Member

@pirj pirj commented Dec 16, 2019

Bundler is installed along with latest versions of rubygems-update and binaries seem to clash.
Example failures:

Installing RubyGems 3.1.1
  Successfully built RubyGem
  Name: bundler
  Version: 2.1.0
  File: bundler-2.1.0.gem
bundler's executable "bundle" conflicts with /home/travis/.rvm/rubies/ruby-2.6.3/bin/bundle
Overwrite the executable? [yN]

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received

Presumably, RubyGems incorrectly detect that it's a non-interactive shell and don't fall back to default false.

RubyGems issue.
Recommended workaround.

@pirj pirj self-assigned this Dec 16, 2019
@pirj pirj force-pushed the fix-bundler-on-2.6.3 branch from f23e80c to 639bb90 Compare December 16, 2019 23:40
@pirj pirj changed the title Do not install bundler if it is already there Work around RubyGems TTY detection Dec 17, 2019
@pirj pirj force-pushed the fix-bundler-on-2.6.3 branch from cfeb549 to f9dfab8 Compare December 17, 2019 20:28
@pirj pirj marked this pull request as ready for review December 17, 2019 20:29
@pirj pirj requested a review from JonRowe December 17, 2019 20:29
@pirj
Copy link
Member Author

pirj commented Dec 17, 2019

The build is red as expected, @benoittgt is fixing that part in #2231
At least we've passed through [yN].

@JonRowe JonRowe merged commit 6d16296 into master Dec 18, 2019
@JonRowe JonRowe deleted the fix-bundler-on-2.6.3 branch December 18, 2019 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants