encoding/jsonschema: do not let cue/load walk up to the git root
When using `GODEBUG=gocachehash=1 go test .`, the number of testInput
lines goes down dramatically after the change, as the test cache logic
no longer needs to stat hundreds of files in parent directories.
$ grep testInput before.txt | wc -l
3960
$ grep testInput after.txt | wc -l
1291
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Icf1555286be13c40defd33889f99009bcc001e22
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201439
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>