-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Modular CLI]: Do follow Freedesktop's XDG Base Directory Specification #739
Comments
A partial workaround today is to set MODULAR_HOME to your $XDG_CONFIG_HOME. Eg: export MODULAR_HOME="$XDG_STATE_HOME/modular"
modular auth ...
modular install ... |
Closing since a workaround exists, and this is not on our roadmap. |
Put it on your roadmap. Not following standards is not "playing nicely". Your workaround is just that, a workaround. If what you were providing was a toaster, I would be complaining that providing a toaster with a UK power plug in the US does not make sense: follow the standards. Your workaround is akin to telling people to have a UK power socket fitted in your US home, when what I ask for is a converter on the plug you provide. |
There is a workaround and the future of the installation system could change. |
Not if you don't put it on your roadmap. Changing a custom, Modular-specific, environment variable is not following the standard. I'm not even sure why you think that is. The default should be The fix is super easy, if the code wasn't closed, I could provide one in 20 minutes max, without having had a look at the code before. The problem with this is that if left alone, there will be always someone to complain in the dev team that |
Issue description
modular
behaves like a punk, trying to dump state and garbage in~/.modular
.Please follow the XDG Base Directory Specification. The minimum would be following
$XDG_CONFIG_HOME/modular
(falling back to~/.config/modular
if not set). You could also use$XDG_STATE_HOME/modular
to store auth tokens for the time being (defaults to~/.local/state/modular
). I am not sure yet where mojo is eventually installed, but$XDG_DATA_HOME/modular/mojo
(defaulting to~/.local/share/modular
) would probably be the right place for a user install.Steps to reproduce
rm -rf ~/.modular
chmod -R a-w ~/
modular auth XXX
modular: error: ~/.modular could not be created: Permission denied
Version Info
The text was updated successfully, but these errors were encountered: