-
Notifications
You must be signed in to change notification settings - Fork 260
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
dotenv is not working on v1.0.4 #1135
Comments
Same here |
@albertilagan, I can't seem to replicate this. Am I missing anything? This the setup I used: https://gist.github.com/sandydoo/640404ce7f88a0f5bbf3c27875ee1453 |
I'm having the same issue, configuring the environment using a flake |
If you're experiencing this issue, please post gists with your |
https://gist.github.com/chocoladisco/9a60fdd7217aba5607c1e401393726af This gives me the error message the dotenv file .env was not found |
@chocoladisco most probably it's because you use flake. And git flakes are not coping flies that are not added to git. Try to exclude .env from .gitignore and The other question is that you most probably don't want to include .env to git. I would love to know proper solution for this |
Correct. This is well-known design problem with flakes. I don't believe we have any workarounds for this, so if you rely on the dotenv integration, I'd recommend using the devenv cli. |
Yes, that is what I came up with eventually |
Closing this because we can't get a response from the OP. If you're using flakes, the dotenv integration will not work. A Nix flake requires you to track all of the files you need in your config. This is a design limitation/flaw of Nix flakes. Use devenv's |
Describe the bug
is not working after upgrading from
v1.0.3
tov1.0.4
To reproduce
devenv
tov1.0.4
,dotenv.enable
is set totrue
,devenv up
,.env
is not getting picked up.Version
devenv 1.0.4 (aarch64-darwin)
The text was updated successfully, but these errors were encountered: