Some of the Terra environment variables are similar/identical/unclear. This results in confusion and some just plugins can't operate correctly without having special behavior for terra specifically, which breaks paradigm.
The current pattern for Terra apps is:
TERRA_CWD - Terra directory
TERRA_TERRA_DIR - Also Terra directory
TERRA_{APP_NAME}_CWD - Terra App directory
TERRA_APP_DIR - Also terra app directory
This is both duplicated settings with no clear distinction, and break just plugins that used ${JUST_PROJECT_PREFIX}_CWD.
The suggested cleanup would:
TERRA_CWD - Terra App directory
TERRA_DIR - Terra directory
Unfortunately, this will require a refactor in each terra app (currently 4 in development).
A mitigation for this is to detect TERRA_*_CWD variables, and throwing an error if any exist. Or the introduction of a TERRA_VERSION similar to JUST_VERSION
Some of the Terra environment variables are similar/identical/unclear. This results in confusion and some just plugins can't operate correctly without having special behavior for terra specifically, which breaks paradigm.
The current pattern for Terra apps is:
TERRA_CWD- Terra directoryTERRA_TERRA_DIR- Also Terra directoryTERRA_{APP_NAME}_CWD- Terra App directoryTERRA_APP_DIR- Also terra app directoryThis is both duplicated settings with no clear distinction, and break just plugins that used
${JUST_PROJECT_PREFIX}_CWD.The suggested cleanup would:
TERRA_CWD- Terra App directoryTERRA_DIR- Terra directoryUnfortunately, this will require a refactor in each terra app (currently 4 in development).
A mitigation for this is to detect
TERRA_*_CWDvariables, and throwing an error if any exist. Or the introduction of aTERRA_VERSIONsimilar toJUST_VERSION