cmd/cue: add a test for `cue mod publish` on a non-tidy module
This succeeds right now, but it shouldn't, and we already have
a TODO in modpublish.go for this reason.
This is important not only by itself as a default sanity check,
but also for the upcoming change to consistently suggest
that the user run 'cue mod fix' when an operation on the current module
fails because it lacks a language.version field.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I8e0c91c3a526dbe2753e1e51d504146b2d85f1a8
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195727
Reviewed-by: Paul Jolly <paul@myitcv.io>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>