Skip to content
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

Prevent sprocket install failure when we are using Ruby below 2.5 #2347

Closed
wants to merge 1 commit into from

Conversation

benoittgt
Copy link
Member

Randomly sprocket 4 can be installed on the CI on Ruby version below 2.5.

We should not have this behavior.

This change prevent this kind of random issue on the CI.

Related:

@@ -63,6 +63,10 @@ end

gem "rubyzip", '~> 1.2'

if RUBY_VERSION.to_f < 2.5
gem 'sprockets', '~> 3.7.0'
Copy link
Member

Choose a reason for hiding this comment

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

Won't Bundler figure it out on its own? They do specify a version:

  s.required_ruby_version = '>= 2.5.0'

shouldn't bundle take this into account and check out sprockets < 4.0 when it understands that 4+ won't work?

Copy link
Member Author

Choose a reason for hiding this comment

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

This what I thought but the CI failed earlier for this PR #2346. But I am not able to find it again. It was on Ruby 2.4.

I will close it for now. We will see if it happen again.

@benoittgt benoittgt closed this May 25, 2020
@benoittgt benoittgt deleted the handle-sprocket-ruby-2-5 branch May 25, 2020 21:03
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.

None yet

2 participants