-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[Inline] Add bundler/inline to allow using Bundler without a Gemfile #3440
Conversation
Those 2 spec failures look like API timeouts to me. |
I restarted the failing jobs. |
Er, just to double-check, in the example script, you would still have to |
@indirect right now, using |
There is no |
Ah my bad. It'd be like calling |
In order to encourage reasonable growth of a script into a multi-file project, can we leave out the |
André and I just agreed that not auto-requiring in this circumstance would make users do a redundant |
Can you document this somewhere, preferably with examples? :D (Maybe even on the Bundler website?!) |
This is really nice! 👍 |
[Inline] Add bundler/inline to allow using Bundler without a Gemfile
@segiddins Excellent! This new feature should greatly simplify the way we do Ruby packaging in NixOS. Thanks! |
Do you have more thoughts on this written down somewhere? I would think we want to preload to take advantage of CoW with forking webservers. |
@schneems I believe the anti-pattern that @indirect is referring to is the fact that - assuming you don't require what you use - your tests (as just one example) can't be run without requiring everything up front. So while the act of requiring everything up front is great (with respect to CoW), you should still require what you need where you need it. |
This is not really a relevant discussion for this particular feature, which is targeted at single-file scripts. |
Thank you @cstrahan, makes sense. Thanks for the feature @segiddins i cede this thread back to you. |
Closes rubygems/bundler-features#47.
Enables scripts such as the following to work on their own, as long as bundler is installed: