devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[Feature]: add devbox required version to devbox.json

Open dudicoco opened this issue 2 years ago • 3 comments

Is your feature request related to a problem you're trying to solve? Please describe. Currently it is not possible to have a consistent version of devbox across users machines, which may result in broken features due to version incompatibility.

Describe the solution you'd like Add a devbox_version field to devbox.json which will allow to set the required devbox version. Running devbox with an incompatible version should fail with an informative message on the required version and provide instuctions on how to install it.

dudicoco avatar Aug 13 '23 11:08 dudicoco

@dudicoco I like this idea, let me discuss with the team to see what version we can prioritize it for

loreto avatar Aug 14 '23 17:08 loreto

hi @loreto, any updates on this issue

dudicoco avatar Mar 10 '24 17:03 dudicoco

Not yet, sorry that it's taken a while. We've had to prioritize other issues. Adding @Lagoja who plans our releases so he can figure out where to schedule it.

loreto avatar Mar 13 '24 22:03 loreto

This feature would save a lot of headache 💚

The latest 0.14 release changes the lock file on some machines. Older versions change it back 🙈

Leksat avatar Feb 27 '25 09:02 Leksat

I've submitted an initial PR for this. Hopefully it is helpful.

pmyjavec avatar Mar 26 '25 06:03 pmyjavec

Tip for those who use Devbox with direnv: add DEVBOX_USE_VERSION=x.x.x to your .envrc

Leksat avatar Apr 15 '25 11:04 Leksat