Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

direnv: referenced -u /.../.envrc does not exist #1275

Open
EugenDueck opened this issue Apr 28, 2024 · 0 comments
Open

direnv: referenced -u /.../.envrc does not exist #1275

EugenDueck opened this issue Apr 28, 2024 · 0 comments
Labels

Comments

@EugenDueck
Copy link

EugenDueck commented Apr 28, 2024

Describe the bug
I just installed direnv for the first time, to try it out.
When cd-ing into a folder with an .envrc, direnv claims the .envrc file does not exist. This is somewhat ironic, as that error only is only shown when cd-ing into folders that does contain an .envrc. Also, the contents of .envrc do not get applied.

To wit:

> cd direnv-test/
direnv: referenced -u /private/tmp/direnv-test/.envrc does not exist
> cat /private/tmp/direnv-test/.envrc
export FOO=foo
> ls -l /private/tmp/direnv-test/.envrc
-rw-r--r--  1 userx  staff  15 Apr 28 18:18 /private/tmp/direnv-test/.envrc
> echo $FOO

>

To Reproduce

# install direnv via homebrew or a build from https://github.com/direnv/direnv/releases (direnv.darwin-arm64)
echo 'direnv hook fish | source' >> $HOME/.config/fish/config.fish
# restart fish
mkdir direnv-test
echo 'export FOO=foo' > direnv-test/.envrc
cd direnv-test
# direnv: referenced -u /private/tmp/direnv-test/.envrc does not exist
echo $FOO

Expected behavior
No error to be shown, and the contents of .envrc being applied.

Environment

  • OS: MacOS 14.4.1 (23E224), Apple M2
  • Shell: fish, version 3.7.1
  • Direnv version: I tried 2.34.0, 2.30.0, and a couple of version in-between

Additional context

> tail -1 $HOME/.config/fish/config.fish
direnv hook fish | source

This seems to be different from #1079, where the issue creator states the problem does not exist with versions prior to 2.32.2.

@EugenDueck EugenDueck added the Bug label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant