ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:91585] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem
       [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
@ 2019-02-18 18:35 ` eregontp
  2019-02-19  0:59 ` [ruby-core:91588] " mame
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: eregontp @ 2019-02-18 18:35 UTC (permalink / raw)
  To: ruby-core

Issue #15611 has been reported by Eregon (Benoit Daloze).

----------------------------------------
Feature #15611: Shipping Bundler as a bundled gem, not a default gem
https://bugs.ruby-lang.org/issues/15611

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I think this would simplify many things, and would allow to update or remove the shipped Bundler easily on Ruby 2.6.

Is there a particular reason to have Bundler as a default gem?

Also, given how Bundler magically switches which version is used based on the Gemfile, it seems better to have each Bundler version in its own directory,
rather thank risking to load multiple Bundler versions or parts of it from lib/, site_ruby/ and the bundler gem directory.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:91588] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem
       [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
  2019-02-18 18:35 ` [ruby-core:91585] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem eregontp
@ 2019-02-19  0:59 ` mame
  2019-02-19  9:25 ` [ruby-core:91589] " deivid.rodriguez
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mame @ 2019-02-19  0:59 UTC (permalink / raw)
  To: ruby-core

Issue #15611 has been updated by mame (Yusuke Endoh).


As far as I know, bundler is planned to be merged to rubygems.  If shipping bundler as a gem is ephemeral, it looks less significant to me whether bundler should be a bundled gem or a default one.

In fact, rubygems already includes some special code for bundler, e.g., [bundler_version_finder.rb](https://github.com/rubygems/rubygems/blob/master/lib/rubygems/bundler_version_finder.rb).  I think that it is going to be unreasonable to separate bundler as a gem.

Just my two cents,

----------------------------------------
Feature #15611: Shipping Bundler as a bundled gem, not a default gem
https://bugs.ruby-lang.org/issues/15611#change-76851

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I think this would simplify many things, and would allow to update or remove the shipped Bundler easily on Ruby 2.6.

Is there a particular reason to have Bundler as a default gem?

Also, given how Bundler magically switches which version is used based on the Gemfile, it seems better to have each Bundler version in its own directory,
rather thank risking to load multiple Bundler versions or parts of it from lib/, site_ruby/ and the bundler gem directory.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:91589] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem
       [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
  2019-02-18 18:35 ` [ruby-core:91585] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem eregontp
  2019-02-19  0:59 ` [ruby-core:91588] " mame
@ 2019-02-19  9:25 ` deivid.rodriguez
  2019-02-19 12:26 ` [ruby-core:91590] " eregontp
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: deivid.rodriguez @ 2019-02-19  9:25 UTC (permalink / raw)
  To: ruby-core

Issue #15611 has been updated by deivid (David Rodríguez).


Yes, I was going to comment exactly along the same lines mame presents.

Also, moving bundler to a default gem would still keep the same problem in https://bugs.ruby-lang.org/issues/15610, but only for the rubygems code. Although to be honest, having duplicated versions of the rubygems code in rubylibdir and site_ruby has not yet led to real world issues that I know of. But still, moving both to site_ruby feels cleaner and safer to me.

----------------------------------------
Feature #15611: Shipping Bundler as a bundled gem, not a default gem
https://bugs.ruby-lang.org/issues/15611#change-76852

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I think this would simplify many things, and would allow to update or remove the shipped Bundler easily on Ruby 2.6.

Is there a particular reason to have Bundler as a default gem?

Also, given how Bundler magically switches which version is used based on the Gemfile, it seems better to have each Bundler version in its own directory,
rather thank risking to load multiple Bundler versions or parts of it from lib/, site_ruby/ and the bundler gem directory.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:91590] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem
       [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-02-19  9:25 ` [ruby-core:91589] " deivid.rodriguez
@ 2019-02-19 12:26 ` eregontp
  2019-02-19 17:56 ` [ruby-core:91595] " deivid.rodriguez
  2019-03-08 11:53 ` [ruby-core:91716] " hsbt
  5 siblings, 0 replies; 6+ messages in thread
From: eregontp @ 2019-02-19 12:26 UTC (permalink / raw)
  To: ruby-core

Issue #15611 has been updated by Eregon (Benoit Daloze).


> As far as I know, bundler is planned to be merged to rubygems.

What would that mean exactly? (that's a question for Bundler/RubyGems devs)
Will both repositories become one and the code be reused for both parts? That's what I would consider "merged".
Otherwise, it looks like two different softwares with different versions. Currently it doesn't look merged at all to me.

> If shipping bundler as a gem is ephemeral, it looks less significant to me whether bundler should be a bundled gem or a default one.

Not sure how ephemeral, but right now bundler is a default gem in the 2.6 releases, and as argued above I think it's an actual issue for it to be a default gem.

> Also, moving bundler to a default gem would still keep the same problem in https://bugs.ruby-lang.org/issues/15610, but only for the rubygems code. Although to be honest, having duplicated versions of the rubygems code in rubylibdir and site_ruby has not yet led to real world issues that I know of. But still, moving both to site_ruby feels cleaner and safer to me.

RubyGems has been in stdlib since 1.9, so there is some history there, and RubyGems itself cannot be a gem of course.
But I agree, it would be more consistent to always have RubyGems be installed the same directory.
I wonder what should happen when upgrading RubyGems fails while copying files though, maybe having a safe copy somewhere would be a good way to deal with that.

I think it would be better if every part of stdlib that can be upgraded could be cleanly removed and handled like a real gem, which seems very complicated for stdlibs directly under `lib/`.
This also applies for other default gems part of the stdlib.

----------------------------------------
Feature #15611: Shipping Bundler as a bundled gem, not a default gem
https://bugs.ruby-lang.org/issues/15611#change-76853

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I think this would simplify many things, and would allow to update or remove the shipped Bundler easily on Ruby 2.6.

Is there a particular reason to have Bundler as a default gem?

Also, given how Bundler magically switches which version is used based on the Gemfile, it seems better to have each Bundler version in its own directory,
rather thank risking to load multiple Bundler versions or parts of it from lib/, site_ruby/ and the bundler gem directory.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:91595] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem
       [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2019-02-19 12:26 ` [ruby-core:91590] " eregontp
@ 2019-02-19 17:56 ` deivid.rodriguez
  2019-03-08 11:53 ` [ruby-core:91716] " hsbt
  5 siblings, 0 replies; 6+ messages in thread
From: deivid.rodriguez @ 2019-02-19 17:56 UTC (permalink / raw)
  To: ruby-core

Issue #15611 has been updated by deivid (David Rodríguez).


> Also, moving bundler to a default gem would still keep the same problem...

When I said "default gem" before I meant "bundled gem", but I think you understood me... :)

> ¿What would that mean exactly? (that's a question for Bundler/RubyGems devs)
Will both repositories become one and the code be reused for both parts? That's what I would consider "merged".
Otherwise, it looks like two different softwares with different versions. Currently it doesn't look merged at all to me.

Yeah, that's what it means. But it's currently only a long term goal.

> RubyGems has been in stdlib since 1.9, so there is some history there, and RubyGems itself cannot be a gem of course.
> But I agree, it would be more consistent to always have RubyGems be installed the same directory.
I wonder what should happen when upgrading RubyGems fails while copying files though, maybe having a safe copy somewhere would be a good way to deal with that.

Right, I guess that's precisely why rubygems is currently shipped in rubylibdir, so that the default installation is never changed?

----------------------------------------
Feature #15611: Shipping Bundler as a bundled gem, not a default gem
https://bugs.ruby-lang.org/issues/15611#change-76857

* Author: Eregon (Benoit Daloze)
* Status: Open
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I think this would simplify many things, and would allow to update or remove the shipped Bundler easily on Ruby 2.6.

Is there a particular reason to have Bundler as a default gem?

Also, given how Bundler magically switches which version is used based on the Gemfile, it seems better to have each Bundler version in its own directory,
rather thank risking to load multiple Bundler versions or parts of it from lib/, site_ruby/ and the bundler gem directory.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:91716] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem
       [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2019-02-19 17:56 ` [ruby-core:91595] " deivid.rodriguez
@ 2019-03-08 11:53 ` hsbt
  5 siblings, 0 replies; 6+ messages in thread
From: hsbt @ 2019-03-08 11:53 UTC (permalink / raw)
  To: ruby-core

Issue #15611 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Assigned to Rejected

>Is there a particular reason to have Bundler as a default gem?

Already @mame said. Bundler will merge into RubyGems in the feature. In fact, after RubyGems 2.7+ integrated the part of dependency resolver of Bundler. 
Therefore We should test Bundler and RubyGems every commits of CRuby. If We shipped Bundler as bundled gems, We couldn't test its integrated parts.

PS. The RubyGems and Bundler team are going to discuss its details at before/after Dev MTG in RubyKaig 2019.



----------------------------------------
Feature #15611: Shipping Bundler as a bundled gem, not a default gem
https://bugs.ruby-lang.org/issues/15611#change-76990

* Author: Eregon (Benoit Daloze)
* Status: Rejected
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I think this would simplify many things, and would allow to update or remove the shipped Bundler easily on Ruby 2.6.

Is there a particular reason to have Bundler as a default gem?

Also, given how Bundler magically switches which version is used based on the Gemfile, it seems better to have each Bundler version in its own directory,
rather thank risking to load multiple Bundler versions or parts of it from lib/, site_ruby/ and the bundler gem directory.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-08 11:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15611.20190218183528@ruby-lang.org>
2019-02-18 18:35 ` [ruby-core:91585] [Ruby trunk Feature#15611] Shipping Bundler as a bundled gem, not a default gem eregontp
2019-02-19  0:59 ` [ruby-core:91588] " mame
2019-02-19  9:25 ` [ruby-core:91589] " deivid.rodriguez
2019-02-19 12:26 ` [ruby-core:91590] " eregontp
2019-02-19 17:56 ` [ruby-core:91595] " deivid.rodriguez
2019-03-08 11:53 ` [ruby-core:91716] " hsbt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).