How to better handle updating versions with an existing BSP entry #2079
Replies: 1 comment 1 reply
-
I think the most wanted solution is to use the executable, the user used to create the entry. E.g. in my typical setup, I use a globally installed I also have a |
Beta Was this translation helpful? Give feedback.
-
Hello! This isn't actually a problem unique to Mill, but since the new release of Mill I've hit on this a few times so I figured I could create the convo here to see how we could maybe address it in Mill.
A workflow I have is to get a
.bsp/mill-bsp.json
file created (either manually or with Metals) and use Mill as a BSP server. When doing that you'll end up with an entry that looks something like this (I added formatting for easier reading):Now lets say after this was created a new Mill update comes out (like just happened with 0.10.8) and the user updates their
.mill-version
but never regenerates their BSP entry. They are now in a state where things could go wrong since in reality they are using 0.10.8 in their build but really are still using 0.10.7 in their BSP entry.I haven't dug into the code yet to verify, but this will indeed be running a 0.10.7 build server correct? Is there any danger doing this if the build definition itself is on 0.10.8? I'm curious if there is any way to avoid this mismatch or to help a user out to ensure that when they do an upgrade to a new Mill version that they aren't stuck with an old BSP entry. Any idesas?
Beta Was this translation helpful? Give feedback.
All reactions