Am I right that we don't today have an easy way to...
# general
h
Am I right that we don't today have an easy way to check for "does a lockfile need regenerating because of changes to its input requirements"? Seems like that could be useful
Actually regenerating to see if there are any differences is not a good solution because changes to the world will cause differences even if the requirement inputs haven't changed.
w
an attempt to consume the lockfile will fail and indicate that you need to regenerate it. but no, there isn’t an explicit operation currently.
s
h
Ah, so it sounds like we're almost all the way there (since we are able to fail that attempt to consume, we must already have the ability to tell)
Thanks for the link @sparse-lifeguard-95737! That is exactly what I'm after
h
afaik, the hardest part is what the UX should look like. As is common w/ Pants tickets 🙂
s
If somebody spends some time thinking about UX changes to lockfile generation, https://github.com/pantsbuild/pants/issues/15704 is another one to keep in mind 😄
e
I have heard 0 complaints about the cargo UX for this. I'd steal.