Skip to content
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

Allow custom environment variable for Nimble's cache #11340

Closed
ghost opened this issue May 28, 2019 · 3 comments
Closed

Allow custom environment variable for Nimble's cache #11340

ghost opened this issue May 28, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented May 28, 2019

Summary

Allow a custom environment variable to be set for Nimble's location of packages etc.

Description

I'm a human being that likes to work with a clean environment and this especially goes for my personal user space. User space simply means the user profile directory (~/ and on Windows %USERPROFILE%).

See, I'm getting tired of compilers, package managers and some other programs like VS Code, dumping all their gorgeous goodies into my personal user space. This is not what this directory is for. This directory is for me, where I can store my personal files, important documents and other stuff yada yada yada.

There's always this stupid comment "But you can toggle dot files/directories with Ctrl + H". This doesn't account for Windows, and I don't want to depend on an external program hiding all that gibberish from me.

Have you checked whether or not you can set an environment variable for Nimble?

There's no need. It's hard-coded.

let nimbleDesiredPath = expandFilename(getEnv("USERPROFILE") / ".nimble" / "bin")

What problem does it fix?

People like me can get on with their life, can customize their environment, and stop worrying about programs dumping their goodies into the user space.

Easy fix inbound?

You tell me. As of right now I'd suggest to store Nimble's cache in more suitable directories. Is an environment variable (NIMBLE_HOME) not explicitly set then go for:
Unix - ~/.local/.nimble
Windows - %APPDATA%/.nimble or %LOCALAPPDATA%/.nimble

Additional Information

https://www.reddit.com/r/linux/comments/971m0z/im_tired_of_folders_littering_my_home_directory/

@alaviss
Copy link
Collaborator

alaviss commented May 28, 2019

Related nim-lang/nimble#217

@andreaferretti
Copy link
Collaborator

You should open this as an issue for nimble, not Nim

@andreaferretti
Copy link
Collaborator

And by the way, the nimble cache is configurable

@ghost ghost closed this as completed May 28, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants