Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport the XDG Base Directory Specification. #1734
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
0X1A
Jun 25, 2015
Have been stumped by this as well. Looked for Cargo's config in ~/.config/cargo only to find nothing. Don't really understand why Cargo places its config in ~/.cargo and the environment variable
CARGO_HOME, while nice is entirely useless. If the user's XDG is not set then it would be fine to place in ~/.cargo.
0X1A
commented
Jun 25, 2015
|
Have been stumped by this as well. Looked for Cargo's config in |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Earnestly
Jun 25, 2015
@0X1A If the respective XDG_* variables are not set, they should fallback
to the appropriate defaults as defined by the specification. The unfortunate
legacy behaviour cargo needlessly introduced will likely just add the code
bloat.
Earnestly
commented
Jun 25, 2015
|
@0X1A If the respective |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Yamakaky
Sep 6, 2015
Is someone working on this ? The more we wait, the more difficult it will be to change the default.
Yamakaky
commented
Sep 6, 2015
|
Is someone working on this ? The more we wait, the more difficult it will be to change the default. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
0X1A
commented
Sep 6, 2015
|
@Yamakaky AFAIK there isn't anything being done about it |
alexcrichton
referenced this issue
Sep 9, 2015
Open
Windows: Cargo should put files in ~/appdata, not directly in ~/ #1976
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
You can use my xdg crate to implement this. |
tbu-
referenced this issue
Nov 9, 2015
Closed
Make Cargo obey platform-specific directory standards #2127
added a commit
to tbu-/cargo
that referenced
this issue
Nov 10, 2015
added a commit
to tbu-/cargo
that referenced
this issue
Nov 10, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nagisa
commented
Dec 11, 2015
|
cargo install now installs into |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
whitequark
Dec 11, 2015
Contributor
... and it really should use ~/.local/bin; there's precedent already in the behavior pip install --user, at least.
|
... and it really should use |
added a commit
to tbu-/cargo
that referenced
this issue
Dec 18, 2015
added a commit
to tbu-/cargo
that referenced
this issue
Dec 26, 2015
added a commit
to tbu-/cargo
that referenced
this issue
Jan 25, 2016
added a commit
to tbu-/cargo
that referenced
this issue
Jan 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@tbu- any progress? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@Stebalien Waiting for rust-lang/rfcs#1615. |
linkmauve
referenced this issue
Sep 26, 2016
Closed
Replace $HOME/.xargo with $XDG_DATA_HOME/xargo #46
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Abdillah
Oct 8, 2016
It's the only thing I missed in rust ecosystem!
Maybe we can rebase the patch to keep it synced with current development.
Or to separate the patch into three platform so that it will be available on partial inclusion.
Abdillah
commented
Oct 8, 2016
|
It's the only thing I missed in rust ecosystem! Or to separate the patch into three platform so that it will be available on partial inclusion. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tbu-
Oct 8, 2016
Contributor
I'll rebase the patch or the partial patch if this gets accepted. This won't be the problem.
|
I'll rebase the patch or the partial patch if this gets accepted. This won't be the problem. |
tbu-
referenced this issue
Oct 28, 2016
Open
Let Cargo put data into platform-specific directories #1615
carols10cents
added
A-configuration
C-feature-request
labels
Sep 10, 2017
BurntSushi
referenced this issue
Feb 4, 2018
Closed
Support persistent configuration (`.rgrc`?) #196
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
sanmai-NL
Feb 22, 2018
I don’t know where this came from, but on Linux I apparently have both
CARGO_HOMEbeing~/.cargo/bin/as well asCARGO_HOME2being~/.cargo/bin/bin/.😕
sanmai-NL
commented
Feb 22, 2018
|
I don’t know where this came from, but on Linux I apparently have both
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
genodeftest
Feb 24, 2018
@sanmai-NL Where does your CARGO_HOME2 come from? I only have CARGO_HOME, which I set to "$XDG_DATA_HOME"/cargo in my ~/.bashrc.
genodeftest
commented
Feb 24, 2018
|
@sanmai-NL Where does your |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
sanmai-NL
Feb 24, 2018
I have no idea, probably just some leftover from messing around when there was no Arch Linux package for Cargo yet. Note that my CARGO_HOME was also wrong, the bin path component should only be appended to CARGO_HOME within the PATH env var instead.
sanmai-NL
commented
Feb 24, 2018
•
|
I have no idea, probably just some leftover from messing around when there was no Arch Linux package for Cargo yet. Note that my |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Glandos
Mar 10, 2018
Another issue with not respecting XDG: backups. My current backup profiles knows that it should avoid ~/.cache/ directory. And cargo is creating a lot of things into ~/.cargo that is only cache data, not useful to backup…
Glandos
commented
Mar 10, 2018
|
Another issue with not respecting XDG: backups. My current backup profiles knows that it should avoid |
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
soc
referenced a pull request that will
close
this issue
Mar 15, 2018
Open
Support platform-defined standard directories #5183
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
added a commit
to soc/cargo
that referenced
this issue
Mar 15, 2018
added a commit
to soc/cargo
that referenced
this issue
Mar 18, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
cc #5183 |
Earnestly commentedJun 19, 2015
This is a continuation from the previous (#148) pull request which your bot apparently merged, but in effect did not.
As there is no open issue about this, I've decided to open one so it is publicly known.
Much has been said in the previous pull request so I won't repeat it here.
For reference, here is a non-exhaustive list of software with varying degrees of compliance.