Mirror of https://github.com/cue-lang/cue cuelang.org
cue go

internal/mod/mvs: adapt to CUE semantics master

Note: experimental feature. The mvs tests rely on using module.Version in a way that doesn't conform to the new requirements for that type. Given that mvs doesn't actually care that it's specifically dealing with module.Version per se, we make it generic across any version-like value. This allows us to avoid rewriting all the (fairly extensive) tests and seems a reasonably natural fit for the generic nature of the MVS algorithm itself. For #2330. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Ib1b16c3267ac98fde30347f118f0eb6b2764a473 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1168705 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Paul Jolly <paul@myitcv.io> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>