cmd/cue: add testscripts for backwards and forwards module compatibility
That is, sanity checking whether downstream consumption (`cue export`,
loading as a dependency) and upstream development (`cue mod tidy`,
`cue mod publish`) work with modules created or developed with either
older or newer versions of CUE.
A number of TODOs are left for areas where we know we need to improve.
This test aims to reflect all edge cases and the current behavior,
and so that future improvement can be seen with changes to these tests.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I82cf6418779bdf1bf53c05ab35ab0278ef24dd87
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195783
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>