cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.56k stars 259 forks source link

devenv init/update: devenv input not up-to-date #1181

Closed tmplt closed 2 weeks ago

tmplt commented 2 weeks ago

Describe the bug devenv init && devenv update output states that devenv input in lock file is outdated.

To reproduce

$ cd $(mktemp -d) && devenv init && devenv update
• Creating devenv.nix                                                                                                                                                                                                                                                            
• Creating devenv.yaml                                                                                                                                                                                                                                                           
• Creating .envrc                                                                                                                                                                                                                                                                
• Creating .gitignore                                                                                                                                                                                                                                                            
• Updating devenv.lock ...                                                                                                                                                                                                                                                       
warning: creating lock file '/devenv.lock'                                                                                                                                                                                                                                       
✔ Updating devenv.lock in 2.1s.                                                                                                                                                                                                                                                  
direnv: loading /tmp/tmp.gRmItoOHo6/.envrc                                                                                                                                                                                                                                       
direnv: loading https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc (sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0=)                                                                                                          
direnv: using devenv                                                                                                                                                                                                                                                             
direnv: .envrc changed, reloading                                                                                                                                                                                                                                                
• Using Cachix: devenv                                                                                                                                                                                                                                                           
direnv: updated devenv shell cache                                                                                                                                                                                                                                               
✨ devenv 1.0.5 is newer than devenv input in devenv.lock. Run `devenv update` to sync.                                                                                                                                                                                           
hello from devenv                                                                                                                                                                                                                                                                
git version 2.44.0                                                                                                                                                                                                                                                               
direnv: export  [snip]

I have the below via home-manager:

programs.direnv.enable = true;
programs.nix-direnv.enable = true;

The message is also printed if no update is issued.

I expect lock file to be up-to-date following an init or update.

Version

I'm not using devenv via flakes. devenv 1.0.5 (x86_64-linux).

sandydoo commented 2 weeks ago

Thanks!