Skip to content

install specific bundler version when minor and patch versions are defined#139

Merged
eregon merged 1 commit intoruby:masterfrom
manuelmeurer:install-specific-bundler-version
Jan 7, 2021
Merged

install specific bundler version when minor and patch versions are defined#139
eregon merged 1 commit intoruby:masterfrom
manuelmeurer:install-specific-bundler-version

Conversation

@manuelmeurer
Copy link
Copy Markdown
Contributor

fixes #138

@manuelmeurer manuelmeurer force-pushed the install-specific-bundler-version branch from 3b97b10 to 48a3a35 Compare January 5, 2021 14:50
@manuelmeurer
Copy link
Copy Markdown
Contributor Author

@eregon Are those failures relevant to my change?
TruffleRuby on Ubuntu 18.04 reports an OutOfMemoryError...

Copy link
Copy Markdown
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just one small refinement.

Comment thread index.js Outdated
} else {
const gem = path.join(rubyPrefix, 'bin', 'gem')
await exec.exec(gem, ['install', 'bundler', '-v', `~> ${bundlerVersion}`, '--no-document'])
const bundlerVersionConstraint = bundlerVersion.match(/^\d+\.\d+\.\d+$/) ? bundlerVersion : `~> ${bundlerVersion}`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove the $ here so e.g. 2.2.0.rc.2 would also be considered an exact version.
(https://rubygems.org/gems/bundler/versions)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eregon Done!

@eregon
Copy link
Copy Markdown
Member

eregon commented Jan 6, 2021

@eregon Are those failures relevant to my change?
TruffleRuby on Ubuntu 18.04 reports an OutOfMemoryError...

Not caused by your change, it's a known issue, it's being worked on.

install specific bundler version when minor and patch versions are defined
@manuelmeurer manuelmeurer force-pushed the install-specific-bundler-version branch from 48a3a35 to 710f684 Compare January 6, 2021 23:17
@eregon eregon merged commit c34fe21 into ruby:master Jan 7, 2021
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.

Newer Bundler patch version is installed

2 participants