internal/mod/modload: rewrite "missing dependency" errors in CheckTidy
That is, telling the user
module is not tidy, use 'cue mod tidy': cannot find module providing package example.com@v0:main
may be confusing, as example.com likely does exist in a registry
and will be added once they run 'cue mod tidy'.
"cannot find module" is a bit of a lie as CheckTidy does not try to
fetch missing dependencies from registries.
Instead, we now say:
module is not tidy, use 'cue mod tidy': missing dependency providing package example.com@v0:main
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ia1549bdc2a1c97c17e29e7e8914085c5c680724e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195701
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>