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

add DEVENVFLAVORROOT to support customized flavor dir #36

Merged
merged 1 commit into from
Jun 5, 2021

Conversation

chestercheng
Copy link
Collaborator

@chestercheng chestercheng commented Jun 5, 2021

┌── .devenv [feat/customized-flavors-dir]
└─❯ export DEVENVFLAVORROOT=$HOME/.flavors
┌── .devenv [feat/customized-flavors-dir]
└─❯ source scripts/init
┌── .devenv [feat/customized-flavors-dir]
└─❯ devenv use issue31 
now using 'issue31'
┌── .devenv [feat/customized-flavors-dir] (issue31)
└─❯ env | grep ^DEVENV
DEVENVFLAVOR=issue31
DEVENVFLAVORROOT=/home/chestercheng/.flavors
DEVENVPATH_BACKUP=/home/chestercheng/.local/bin:/home/chestercheng/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DEVENVPREFIX=/home/chestercheng/.flavors/issue31/usr
DEVENVDLROOT=/home/chestercheng/.devenv/var/downloaded
DEVENVLIBRARY_PATH_BACKUP=
DEVENVROOT=/home/chestercheng/.devenv
┌── .devenv [feat/customized-flavors-dir] (issue31)
└─❯ echo $PATH
/home/chestercheng/.flavors/issue31/usr/bin:/home/chestercheng/.local/bin:/home/chestercheng/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

@yungyuc
Copy link
Member

yungyuc commented Jun 5, 2021

A user may achieve the same thing by making $DEVENVROOT/flavors a symlink. What is the benefit of having the additional environment variable?

The new environment variable does no harm, though.

@tai271828
Copy link
Collaborator

A user may achieve the same thing by making $DEVENVROOT/flavors a symlink. What is the benefit of having the additional environment variable?

The new environment variable does no harm, though.

The first benefit comes to my mind: users who want to create several flavors folder may want to use a environment var.

@tai271828 tai271828 merged commit 5b4563d into solvcon:main Jun 5, 2021
@chestercheng chestercheng deleted the feat/customized-flavors-dir branch December 18, 2022 12:22
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.

4 participants