-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
showing location of credentials #8373
Comments
Moving this to the rubygems CLI repository |
Hi! This change happened a few years ago, when we started following the XDG standard. It should definitely be documented. In practice, you can think of it as RubyGems and Bundler checking these 3 directories and going with the first they can use:
If you want to use the old (For anyone who's interested, the relevant code for this in |
Yes. I figured this out. Would definitely be nice to doc. I could submit
a PR if helpful?
On a side note that standard, while useful, makes backups tricky since that
directory is FULL of craft, like logs, from other commands like gcloud.....
Easy enough to work around when docs are there but...
TY
…On Mon, Dec 30, 2024, 10:04 Ellen Marie Dash ***@***.***> wrote:
Hi! This change happened a few years ago, when we started following the
XDG standard. It should definitely be documented.
In practice, you can think of it as RubyGems and Bundler checking these 3
directories and going with the first they can use:
- if it exists: $HOME/.gem/ (for backwards compatibility)
- if $XDG_DATA_HOME is defined: $XDG_DATA_HOME/gem/ (to follow the XDG
standard)
- in all other situations: $HOME/.local/share/gem/ (also to follow the
XDG standard)
(For anyone who's interested, the relevant code for this in Gem.user_dir
<https://github.com/rubygems/rubygems/blob/b2bf239/lib/rubygems/defaults.rb#L103-L109>
and Gem.home
<https://github.com/rubygems/rubygems/blob/b2bf239147ba31ddd251bfac02534250d04a32ca/lib/rubygems/defaults.rb#L154-L156>,
both in lib/rubygems/defaults.rb.)
—
Reply to this email directly, view it on GitHub
<#8373 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABPTUPI2UMRSQYLOUQJK32IGDLXAVCNFSM6AAAAABUKWZ7ISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRVG43TGOBWGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I am at a loss debugging and issue.... I was having auth issues (wrong key scope) and eventually worked around this. However, I in the process I discovered that my .gem/credentials were not, in fact, stored in the location but, instead, where stored in
.local/share/gem/
I cannot seem to find any reference to this online, or in the code so, I am befuddled.
gem signin
would produce credentials there, instead of the normal spot andgem
command is using?TY!
The text was updated successfully, but these errors were encountered: