cmd/cue: add tests for bad version and qualifier in import paths
Cover edge cases where a package qualifier interacts with the version
in an import path: a full version before a qualifier, and a second
version string inside the qualifier. Also test qualifier-before-version
as a CLI argument.
We do this as part of a new registry_importpath_bad_version.txtar test,
which replaces the registry_importpath_with_full_version.txtar
to be a bit more generic about import paths with bad versions.
For #2859.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I82a3ee5c444a35335725062b68b8e7943f69d8c5
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1233778
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>