mod/modfile: fix up comments in module.cue schema
We currently maintain a copy of mod/modfile/schema.cue by hand over at
cuelang.org. Automating this is covered by #2809 (with indirect support
of #3193)
To help make the copy-paste easier, and ahead of again copy-pasting to
bring the cuelang.org copy up to date with the addition of the 'source'
field, adjust the formatting of the source schema.cue (in particular
line wrapping), and make a couple of corrections in the process:
* default major versions are implemented; remove the TODO associated
with implementing them.
* Correct 'The special value "none"...' - the special value is "self"
when talking about a source. Also correct the circular language of
"self" being defined in terms of the contents of the module (that is
what source is seeking to define as the source of truth after all).
The whitespace changes in schema.cue have resulted in line number
changes which affect the loader_test.go expectations.
Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: I55ed3f054541476d8e3dc150f0ae4fa95bf3f061
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195697
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>