cmd/cue/cmd: require source when running cue mod publish
This is an experimental WIP implementation of the proposal discussed at
https://cuelang.org/discussion/3017.
Still to do in a followup CL: we need to add the git metadata to the
module manifest file.
For #3017.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Ie7d5b0acda4690ee99d2873eed39183ce909a666
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1192907
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>