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

Source file only if present #3053

Closed
pikeas opened this issue Nov 16, 2024 · 1 comment · Fixed by #3236
Closed

Source file only if present #3053

pikeas opened this issue Nov 16, 2024 · 1 comment · Fixed by #3236

Comments

@pikeas
Copy link

pikeas commented Nov 16, 2024

Long-time asdf+direnv user trying to migrate to mise. I have many projects with a .envrc file. Direnv automatically runs this file when present.

Describe the bug
Mise does not automatically run .envrc.

To Reproduce
Create [project]/.envrc, ensure that mise is active, then cd into [project].

Expected behavior
Mise should source .envrc.

I tried _.source in ~/.config/mise/config.toml, but this throws an error when .envrc is absent.

I also tried _.file, but this does not work for executable scripts.

This will work with a project-level Mise config, but it would be better if everything Just Worked as a drop-in replacement.

@pikeas pikeas added the bug label Nov 16, 2024
@jdx jdx added enhancement and removed bug labels Nov 16, 2024
@jdx
Copy link
Owner

jdx commented Nov 16, 2024

I don't understand how this is a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants