Skip to content

Environment views: add all paths on activation#12719

Merged
becker33 merged 1 commit intodevelopfrom
features/env-load-unconditional
Sep 6, 2019
Merged

Environment views: add all paths on activation#12719
becker33 merged 1 commit intodevelopfrom
features/env-load-unconditional

Conversation

@becker33
Copy link
Copy Markdown
Member

@becker33 becker33 commented Sep 5, 2019

Currently, environments only load existing paths on activation. This means that new packages in the environment do not load properly. For example

$ unset LD_LIBRARY_PATH
$ spack env create myenv
$ spack env activate myenv
$ spack install zlib
$ echo $LD_LIBRARY_PATH

results in nothing in LD_LIBRARY_PATH. Under this PR, it now results in $spack/var/spack/environments/myenv/.spack-env/view/lib:$spack/var/spack/environments/myenv/.spack-env/view/lib64.

@becker33 becker33 force-pushed the features/env-load-unconditional branch from 4a4046e to d48fbd8 Compare September 5, 2019 18:44
Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@becker33 becker33 merged commit 3f1c781 into develop Sep 6, 2019
@alalazo alalazo deleted the features/env-load-unconditional branch September 10, 2019 13:23
tldahlgren pushed a commit to tldahlgren/spack that referenced this pull request Oct 11, 2019
jrmadsen pushed a commit to jrmadsen/spack that referenced this pull request Oct 30, 2019
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