-
Notifications
You must be signed in to change notification settings - Fork 346
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 state diverge from .env file #1591
Comments
@sandydoo huh, shouldn't that be detected via cache paths? |
I think we have a bug in our @ayoubedd, I imagine if you reload the shell one time with |
@sandydoo yes and no, when i reload it registers the change, but i have to do it every time i change .env file |
@sandydoo apparently when i created a project recently but i used the flake template to instantiate devenv. nix flake init --template github:cachix/devenv it works just fine, it picks change to .env just fine generated .envrc if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi
watch_file flake.nix
watch_file flake.lock
watch_file dedevenv.nix
if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
it uses nix-direnv direenvrc rather than devenv's |
Describe the bug
am using devenv with direnv integration.
when updating
.env
devenv doesn't rebuild.To reproduce
create a dummy
.env
with a couple of envs.enable
dotenv
.build shell, update
.env
. then devenv is out of sync.not sure if its a devenv problem or a direnv problem.
Version
devenv 1.3.1
The text was updated successfully, but these errors were encountered: