-
Notifications
You must be signed in to change notification settings - Fork 122
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
Remove support for old Bundler API in materialize_deps #1448
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
lib/tapioca/gemfile.rb
Outdated
"#{spec.name} (#{spec.version})" | ||
end, | ||
T::Array[String], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This T.cast
is no longer necessary, is the removal preferred?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it is still necessary, but it would be great if we could remove it.
9fae27a
to
6562dc3
Compare
6562dc3
to
66dff5d
Compare
66dff5d
to
35d1678
Compare
35d1678
to
74e06c8
Compare
@@ -596,6 +596,7 @@ class Secret; end | |||
end | |||
|
|||
it "must not include `rbi` definitions into `tapioca` RBI" do | |||
@project.bundle_install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were some flaky errors that made this test fail by processing ruby2_keywords
so I added a bundle install
call to ensure temporary project is in a good state before continuing.
Motivation
This piece of code was brittle and causes an error in the latest bundler version.
Implementation
Instead of supporting different method arity's which could keep changing in the future we can remove support for the old Bundler API. v2.2.25 has been out since July 2021. Users with old versions of Bundler will not be able to use future Tapioca versions.
Tests
Locally tested using
BUNDLER_VERSION=2.4.9 bundle exec tapioca gem --verify
and bumped the version used in tapioca to trigger CI run with latest bundler.