-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Discussed in #60
Originally posted by fabiangeisler August 18, 2022
Not sure if I hit a bug or if this is intended behaviour.
Consider the following setup:
- Module A has a
pre_activate.pyhook that sets env variable "FOO" (in python withos.environ) - Module B has an environment in his
module.ymldefined that uses "FOO"
like:environment: BAR: '${FOO}/somewhere'
- Module A is loaded before Module B in a test environment C
I would expect that "BAR" in Module B resolves fine with the variable from Module A, but it does not. Is this intended or not?
Side note:
That it is not correctly displayed in the tk-cpenv GUI is ok for me as long as the final resolved environment is working fine.
The behaviour that I am after is, setting an environment variable dynamically based on some conditions. Is there another/better way to achieve this in cpenv?