cachix / devenv

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

devenv update does not help #1042

Closed normanjaeckel closed 1 month ago

normanjaeckel commented 1 month ago

Describe the bug

I get the message ✨ devenv 1.0.1 is newer than devenv input in devenv.lock. Run `devenv update` to sync. but devenv update does not help to fix it. Even rm devenv.lock does not help. The file is created without any changes.

To reproduce

Just use the defaults from devenv init

https://gist.github.com/normanjaeckel/2d16e8626f5e08cd95e3fa45cb3c357e

$ devenv update
• Updating devenv.lock ...
✔ Updating devenv.lock in 2.1s.
$ devenv test
• Overriding .devenv to .devenv.OK4xhFG1usQm
• Building tests ...
• Using Cachix: devenv
✔ Building tests in 1.7s.
• Running tests ...
• Building shell ...
✔ Building shell in 2.1s.
✨ devenv 1.0.1 is newer than devenv input in devenv.lock. Run `devenv update` to sync.
hello from devenv
git version 2.43.2
• Setting up shell environment ...
✨ devenv 1.0.1 is newer than devenv input in devenv.lock. Run `devenv update` to sync.
hello from devenv
git version 2.43.2
• Testing ...
✔ Running tests in 2.9s.
• Tests passed :)

Make sure to include full logs and what you expected to happen.

Version

devenv 1.0.1 (x86_64-linux)

domenkozar commented 1 month ago

Should be fixed now, can you try again?

normanjaeckel commented 1 month ago

Fixed. Thank you very much.

davidpfarrell commented 2 weeks ago

@domenkozar wrote:

Should be fixed now, can you try again?

Could you link the PR / commit that supposedly fixed this?

I'm getting this exact error using 1.0.5 and its driving me crazy - Thanks!

davidpfarrell commented 2 weeks ago

@domenkozar I believe the issue I'm seeing is that src/modules/latest-version still points to v1.0.4