devenv icon indicating copy to clipboard operation
devenv copied to clipboard

devenv.local.nix not loaded until devenv.nix is changed

Open landure opened this issue 6 months ago • 3 comments

Describe the bug

In a loaded devenv, a newly created devenv.local.nix is not taken into account until devenv.nix is changed.

To reproduce

In a loaded devenv shell, add a devenv.local.nix file. Reload the devenv using direnv reload.

Nothing changes (the env var are the same).

Make a change in devenv.nix, and reload the devenv. The devenv.local.nix overrides are actives.

Version

devenv 1.8.1 (x86_64-linux)

landure avatar Aug 14 '25 12:08 landure

@sandydoo looks like a caching issue

domenkozar avatar Aug 14 '25 16:08 domenkozar

@landure, I can't quite reproduce this one.

  1. Could you please test against main? We resolved quite a few issues like this one already.
  2. If it's still an issue, is there anything special in devenv.yaml that we should know about? impure?

sandydoo avatar Aug 14 '25 16:08 sandydoo

I think the issue here is that when we evaluate without devenv.local.nix it doesn't take it into account. It should be a watched path even if it doesn't exist.

domenkozar avatar Nov 25 '25 18:11 domenkozar