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

support customizing install directory with $DPATH #510

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WebFreak001
Copy link
Member

This introduces the $DPATH environment variable to override the user's home directory just for D tools.

This is also intended to be used by DUB (dlang/dub#2281) when there is not the more explicit $DUB_HOME variable set on the system.

This allows users who install their D compiler through the install.sh script to both have the compiler installations as well as the dub packages be stored elsewhere in the system than in their home folder.

In case we have other tools that download their dependencies into the user's home directory too, we should also make them support the same $DPATH environment variable. This way we have a unified and configurable placement location for all the D tools caches and dependencies in the ecosystem which are installed through traditional unix ways.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WebFreak001!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

This introduces the $DPATH environment variable to override the user's home directory just for D tools.

This is also intended to be used by DUB (dlang/dub#2281) when there is not the more explicit `$DUB_HOME` variable set on the system.

This allows users who install their D compiler through the install.sh script to both have the compiler installations as well as the dub packages be stored elsewhere in the system than in their home folder.

In case we have other tools that download their dependencies into the user's home directory, we should also make them support the same $DPATH environment variable.
@WebFreak001
Copy link
Member Author

NOTE: script changes untesteed!

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

Successfully merging this pull request may close these issues.

2 participants