-
Notifications
You must be signed in to change notification settings - Fork 174
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 Bundler as a dependency #1255
Remove Bundler as a dependency #1255
Conversation
Why did you close it? |
@tasn Joining in here :) This is Stephen from AnyRoad. We chatted a few weeks ago. We're currently working on getting the Ruby client into our code. We had planned on starting a fork/PR in our own repo, but we opened this one here instead by mistake. The issue for us is that the I'd be happy to open an issue to explain more or we can dig into getting this PR to a good state. What would be the best path forward? |
Hey Stephen, thanks for the context, and good to hear from you again! We are happy to fix whatever is suboptimal in the libs. I'm not sure about the exact specifics of Ruby, but just based on the name Bundler doesn't sound like it should be a dependency, it should only be a dev dependency, right? Maybe just open a PR to remove the dep? You tell me what's the right thing to do in Ruby-land. :) |
Great! This would let us do some testing in our deployed environment. Everything works great for us until we deploy, but Heroku's buildpack is set up in a way that causes the issue to come up. In chatting with another dev here, it doesn't look like Bundler is needed as a dependency for this library, even as a dev dependency, so you could remove it altogether from the If this is a quick fix for you all, that would be great since you are familiar with your build and publish flows. But we're also happy to dig in and see about updating it! We'll look into opening a PR unless I hear from here in the mean time that you're updating it. Thanks for the quick response! |
We would be happy for y'all to contribute a fix just removing it from the gemspec! LMK once you open a PR, or let me know if you prefer us to do it. Either works, but I prefer you got the credit! :) |
If removing it is indeed the correct solutoin, we can just reopen this PR ;) |
I think Bundler will also need to be removed from the |
While we are at it, do we need |
Well, we do have a |
I think you want to keep Rake and RSpec as dev dependencies. |
And I think you need the Rakefile in order to build and publish your gem (based what I see in your GitHub Action workflow). |
@tasn @svix-jplatte Is there anything else you need here from us for this PR? Thanks for looking into this so quickly! |
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.
No further steps needed.
Amazing! Thanks so much. Do you have any thoughts on when you'll publish a new version to RubyGems that includes this? |
Motivation
We are going to use Svix for our webhooks and we have a Gemfile with
bundler 2.4.21
and aruby version 2.7.8
.But due to
bundler (>= 2.2.10)
in svix/ruby/gemfile.lock our build is failing on Heroku because>=
tries to get the latest version of bundler which is currently2.5.6
that requires ruby version 3.0 (which we don't have in our repo). So basically we need to restrict the bundler from updating to the latest version.Solution
There are two options:
~>
sign, not the>=
(so that it will not jump to the latest version).I have implemented the 2nd one in my PR.