Skip to content

Existing .envrc is broken for most users #3256

Description

@hickey

The existing .envrc makes the assumption that Nix is being used and breaks a user's direnv setup. To fix this problem and make a working environment for everyone the current .envrc needs to check if Nix is installed before attempting to execute any Nix specific code. If not found, it should exit gracefully without errors.

In addition, the .envrc needs to source any parent '.envrc' so that the rest of the user's environment is not broken. It is customary to setup tool env variables at the parent directory of all the development projects instead of specifying all the same env vars in every project. The current .envrc does not allow this and this can be fixed by adding the source_up directive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions