Confused about lockfile usage, despite ample documentation #8980
Replies: 3 comments
-
|
Thanks for the detailed report — you're not doing anything wrong, these were genuine bugs. Both This is now fixed in #8983. After that lands:
If your config uses a version prefix like We've also added a command behavior matrix to the docs showing exactly how This comment was generated by Claude Code. |
Beta Was this translation helpful? Give feedback.
-
|
@jdx Thanks for helping out with my confusion! There's one small thing that I'm pretty sure is a bug: 1starting lockfile: [[tools.cmake]]
version = "4.1.6"
backend = "aqua:Kitware/CMake"
# checksums2mise lock cmake@latestlockfile weird: [[tools.cmake]]
version = "latest" # not a specific version
backend = "aqua:Kitware/CMake"
# no checksums3mise lock cmakelockfile weird differently: # double entry:
[[tools.cmake]]
version = "latest"
backend = "aqua:Kitware/CMake"
[[tools.cmake]]
version = "4.1.6"
backend = "aqua:Kitware/CMake"
# checksums reappeared4mise lock cmake # second timelockfile finaly correct again: [[tools.cmake]]
version = "4.1.6"
backend = "aqua:Kitware/CMake"
# checksums |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @igor-makarov — these are two separate bugs in
After that lands, your workflow becomes just:
This comment was generated by Claude Code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm loving mise, especially how it supports multiple backends and allows to centralize tool installation for multiple developers.
I also think having a lockfile is a great idea. However, I am still having trouble getting the hang of how it's actually meant to be used. I'm accustomed to lockfiles in rubygems, npm and cocoapods and
mise lockstill has me stuck.Let's say I've got the following in the project
mise.toml:The project lockfile has the following:
Long snippet, click to expand
I've set out to do a simple task: bump version to a specific version, let's say
2.34.14.mise install [email protected]installs but does not activate. Lockfile isn't updated.mise use [email protected]installs and activates, updating lockfile. But then,mise.tomlhas2.34.14instead oflatest, which is not what I wanted.mise upgrade [email protected]also install without updating lockfile, exactly likemise installdoes.mise lock awscli(@-version does nothing) adds[email protected]to the lockfile, if it was installed by previous command. The lockfile now has two versions. Subsequentmise installremoves2.34.12.In other words, to bump to a specific version, I need to run:
I have not discovered a command combination that can do the reverse, i.e. go from
2.34.14to2.34.12.There's also the additional confusion where sometimes, commands will generate a checksum, but oftentimes they do not. This, of course, results in an inconsistent upgrade flow.
Please tell me what I'm doing wrong. I can't write a consistent reproducible upgrade guide for the other devs on the team. The LLMs are also confused.
Beta Was this translation helpful? Give feedback.
All reactions