Skip to content

Empty allowPath for LoadedRC in direnv status  #1156

@shivaraj-bh

Description

@shivaraj-bh

Describe the bug
RCFromEnv function creates a RC struct with empty allowPath, as a result Loaded RC allowed is always false unless there is direnv.toml whitelisting the path or .envrc file.

To Reproduce
Run direnv status on any directory which has a .envrc file and direnv allow has been run. You will see that Loaded RC allowPath is empty.

Expected behavior
allowPath shouldn't be empty to

Environment

  • OS: MacOS, Linux
  • Shell: zsh
  • Direnv version: 2.32.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions