cue/load: remove support for cue.mod files
We transitioned to a cue.mod directory with a cue.mod/module.cue file
all the way back in 2019: https://cue-review.googlesource.com/c/cue/+/3880
We continued supporting cue.mod files as if they were cue.mod/module.cue
during a transition period, to not break user's modules straight away.
It has been nearly five years now, and the fix is simple enough:
mv cue.mod cue.mod-backup
mkdir cue.mod
mv cue.mod-backup cue.mod/module.cue
Remove support for the legacy file mode for good,
as well as a bit of code in `cue mod init` which did the rewrite above.
Note that a few tests still used it; update those accordingly.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I0a26f6153d58b9b60165e3060099f1d8eed2d4c0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1188428
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>