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

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

Closed
tmplt opened this issue May 2, 2024 · 1 comment · Fixed by #1183
Closed

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

tmplt opened this issue May 2, 2024 · 1 comment · Fixed by #1183
Labels
bug Something isn't working

Comments

@tmplt
Copy link

tmplt commented May 2, 2024

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).

@tmplt tmplt added the bug Something isn't working label May 2, 2024
sandydoo added a commit that referenced this issue May 2, 2024
@sandydoo
Copy link
Member

sandydoo commented May 2, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants