Skip to content

Refactor TERRA_CWD #189

@andyneff

Description

@andyneff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions