-
Notifications
You must be signed in to change notification settings - Fork 48
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
is there a way to refer to the "default" gemset (the standard rbenv gem location) in .rbenv-gemset #83
Comments
I see several problems here:
Perhaps you can write down the exact instructions that you would execute in a scenario like this to show how it would work for you. |
the exact scenario, assuming this implicit gemset is called "default"
|
So my question is does the user need to explicitly name it in
Thank you for that. It sounds like you're an advanced user, if you know how to use |
Yes you can create your own default gemset, but why have to create something that already exists and is full of gems? All that's missing is an ability to refer to it. |
full of gems? how would it be full of gems? |
How would the default rbenv gem location would be full of gems?
|
Mind you, this is not
So basically you want the standard gem install location to be called something like "default". This is going to require some thought:
|
|
Try it out and see for yourself. |
so it looks like gems are always loaded from "default" That does not seem ideal (isn't isolation/encapsulation one of the main points) nor is there any control over this. My proposal provides the control, you can choose whether gems are loaded from default by including it and you can choose whether gems are installed to default by making it primary. I am guessing you won't want to break compat, so that means the "default" gemset would be implicitly included, like global. Perhaps it can get the -global treatment. Then by putting it first explicitly, you'd be making it primary. Alternatively maybe you'd want to break compat and get rid of all implicit inclusion, global and default. Then global goes away entirely as a "special" gemset, and default takes it's place but with explicit user control. |
from the ruby-installed gem list, yes. That's what the creators of ruby have deemed as "essential", I guess. Or "standard". In certain cases, these are indeed absolutely essential (see #53 ).
I can't control how people install gems before coming to rbenv-gemset. If they start using it from the start, all well and good, but if they don't...
it'll be adding a requirement that "upgraders" (people who started using rbenv for some time before getting into rbenv-gemset) include "default" into their gemset list if they want to be up and running and productive quickly
I dont know how much of a pain point this would be, that the default gem "set" would get in the way such that you have to do "-default". Can you find support for this?
About As for |
Final words. When I started this I didn't realize the gems were always loaded from default, but now that I do, it especially makes sense to allow default to be primary because in effect the concept of "default" already half exists. If gems can be loaded from it then gems should be installable to it. That's simply how I would like to use gemsets, mostly using default with a few small helper gemsets when I need them. If you don't think this has value, well, so be it. |
I would like for it to be the default "gemset" and for all my gems to be there except for a couple of Rubymine debug gems, different versions of which will live is different gemsets
Something like that is probably doable with an explicit "global" gemset listed first, in .rbenv-gemset, but why create an explicit global gemset when you already have an implicit global gemset with all the gems in it.
if this is not possible, please consider adding it.
The text was updated successfully, but these errors were encountered: