Closed dhruvbaldawa closed 2 years ago
@dhruvbaldawa thanks for creating this issue! This is actually behaving as intended as you either need to use an inline bash variable here or define the ENV_VAR in the devspace.yaml:
vars:
ENV_VAR:
source: env
MY_VAR: "${ENV_VAR}/bar"
Or:
vars:
MY_VAR: "$( echo $ENV_VAR/bar )"
@FabianKramm Yes, I am using the bash commands right now.
I am trying to understand how to deal with this kind of scenario best.
PROJECT_DIR: "${HOME}/projects"
APP_DIR: "${PROJECT_DIR}/app"
APP_CONF_DIR: "${APP_DIR}/conf"
What approach would you recommend? Should I just have them all as environment variables?
@dhruvbaldawa I see, yes I would use this:
HOME:
source: env
PROJECT_DIR: "${HOME}/projects"
APP_DIR: "${PROJECT_DIR}/app"
APP_CONF_DIR: "${APP_DIR}/conf"
What happened?
In Devspace v6, variables within variables are not resolved correctly.
What did you expect to happen instead?
I expect the variables to be resolved correctly and get their proper value. Equivalent
devspace.yaml
file in v5 worked perfectly fineHow can we reproduce the bug? (as minimally and precisely as possible)
My devspace.yaml:
in v5, this renders as
in v6, this renders as
Local Environment:
Anything else we need to know?
/kind bug